Class: Deadpull::Commands::Pull

Inherits:
S3Command show all
Extended by:
Dry::Initializer
Defined in:
lib/deadpull/commands/pull.rb

Instance Method Summary collapse

Methods inherited from Base

call

Instance Method Details

#callObject



12
13
14
15
16
17
18
19
# File 'lib/deadpull/commands/pull.rb', line 12

def call
  ensure_target_is_not_a_file
  objects.each do |object|
    location = Values::LocalLocation.concretize(path, s3_locations.prefix, object.key)
    object.download_file(location)
  end
  true
end