class Uricp::Strategy::PipedLocalPut
Public Instance Methods
appropriate?()
click to toggle source
# File lib/uricp/strategy/piped_local_put.rb, line 5 def appropriate? return proposal if to.scheme == 'file' && from.scheme == 'pipe' debug "#{self.class.name}: not appropriate" false end
command()
click to toggle source
# File lib/uricp/strategy/piped_local_put.rb, line 13 def command "cp --sparse=always /dev/stdin #{to.path};" end
proposal()
click to toggle source
# File lib/uricp/strategy/piped_local_put.rb, line 17 def proposal @proposed_options = options.dup @proposed_options['from_uri'] = @proposed_options['to_uri'] self end