Sha256: 7433a61f8a06225bf9d4e8691ec7bd69eb9491bb60c6eebad15677411710c9da
Contents?: true
Size: 504 Bytes
Versions: 15
Compression:
Stored size: 504 Bytes
Contents
module Uricp::Strategy class PipedLocalPut include Uricp::Strategy::Common def appropriate? case from.scheme when 'pipe' return proposal if to.scheme == 'file' end debug "#{self.class.name}: not appropriate" false end def command "cp --sparse=always /dev/stdin #{to.path};" end def proposal @proposed_options = options.dup @proposed_options['from_uri'] = @proposed_options['to_uri'] self end end end
Version data entries
15 entries across 15 versions & 1 rubygems