Class: Deadpull::Commands::Push

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

Instance Method Summary collapse

Methods inherited from Base

call

Instance Method Details

#callObject



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

def call
  paths.each do |current_path|
    bucket.put_object(
      key: Values::S3Path.concretize(local_root, current_path, s3_locations.prefix),
      body: File.read(current_path)
    )
  end
  true
end