Sha256: dcae6d6a3b9aafd699f9405a2e26ab315e266d3385eb7420f96560761eadd86c

Contents?: true

Size: 610 Bytes

Versions: 4

Compression:

Stored size: 610 Bytes

Contents

module Sprinkle
  module Commands
    class Transfer < Command
      
      attr_reader :source, :destination, :opts
      
      def initialize(source, destination, opts={})
        @source = source
        @destination = destination
        @opts = opts
      end
      
      def recursive?
        !!@opts[:recursive]
      end
      
      def inspect
        ":TRANSFER, src: #{source}, dest: #{destination}, opts: #{@opts.inspect}"
      end
      
      def eql?(a,b)
        a.source == b.source &&
        a.destionation == b.destination &&
        a.opts == b.opts
      end
      
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sprinkle-0.7.7 lib/sprinkle/commands/transfer.rb
sprinkle-0.7.6.2 lib/sprinkle/commands/transfer.rb
sprinkle-0.7.6.1 lib/sprinkle/commands/transfer.rb
sprinkle-0.7.6 lib/sprinkle/commands/transfer.rb