Sha256: 16c9d7c84e6cdb77cac715a01ab05ac0264ad1d0fdbe35f2d79b0a8476e538d1

Contents?: true

Size: 464 Bytes

Versions: 11

Compression:

Stored size: 464 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

11 entries across 11 versions & 1 rubygems

Version Path
uricp-0.0.15 lib/uricp/strategy/piped_local_get.rb
uricp-0.0.14 lib/uricp/strategy/piped_local_get.rb
uricp-0.0.13 lib/uricp/strategy/piped_local_get.rb
uricp-0.0.12 lib/uricp/strategy/piped_local_get.rb
uricp-0.0.11 lib/uricp/strategy/piped_local_get.rb
uricp-0.0.10 lib/uricp/strategy/piped_local_get.rb
uricp-0.0.9 lib/uricp/strategy/piped_local_get.rb
uricp-0.0.8 lib/uricp/strategy/piped_local_get.rb
uricp-0.0.7 lib/uricp/strategy/piped_local_get.rb
uricp-0.0.6 lib/uricp/strategy/piped_local_get.rb
uricp-0.0.5 lib/uricp/strategy/piped_local_get.rb