Class: URI::Rsync
Constant Summary
collapse
- SCHEMES =
['rsync.ssh'.freeze]
- DEFAULT_HOST =
'localhost'.freeze
- DEFAULT_QUERY =
''.freeze
- COMPONENT =
[
:scheme,
:userinfo,
:host,
:path,
:query
].freeze
Instance Method Summary
collapse
Methods inherited from Generic
#add_query, #checkout, #mk_custom_opts, #pathname, #pathname=, #save, #to_uri, #to_yaml_string, yaml_load
Instance Method Details
#commit(aPath) ⇒ Object
41
42
43
|
# File 'lib/uri/rsync.rb', line 41
def commit ( aPath )
rsync[mk_opts, aPath, mk_arg].run(runner)
end
|
28
29
30
|
# File 'lib/uri/rsync.rb', line 28
def mk_arg
"#@user@#@host:#{@path.gsub(/^\//, '')}"
end
|
24
25
26
|
# File 'lib/uri/rsync.rb', line 24
def mk_opts
['-va'] + mk_custom_opts
end
|