Sha256: d008a177f857ec2ffbac7daeec96d6868faa16241811a3739f1b8fd9cb8822d6

Contents?: true

Size: 457 Bytes

Versions: 8

Compression:

Stored size: 457 Bytes

Contents

module Uricp::Strategy
  class PipedLocalGet
    include Uricp::Strategy::Common

    def appropriate?
      case from.scheme
      when 'file'
        return proposal unless sequence_complete?
      end
      debug "#{self.class.name}: not appropriate"
      false
    end

    def command
      "< '#{from.path}' "
    end

    def proposal
      @proposed_options = options.dup
      @proposed_options['from_uri'] = PIPE_URI
      self
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
uricp-0.0.24 lib/uricp/strategy/piped_local_get.rb
uricp-0.0.23 lib/uricp/strategy/piped_local_get.rb
uricp-0.0.22 lib/uricp/strategy/piped_local_get.rb
uricp-0.0.21 lib/uricp/strategy/piped_local_get.rb
uricp-0.0.20 lib/uricp/strategy/piped_local_get.rb
uricp-0.0.18 lib/uricp/strategy/piped_local_get.rb
uricp-0.0.17 lib/uricp/strategy/piped_local_get.rb
uricp-0.0.16 lib/uricp/strategy/piped_local_get.rb