lib/eco/api/session/task.rb in eco-helpers-1.1.2 vs lib/eco/api/session/task.rb in eco-helpers-1.1.3

- old
+ new

@@ -113,9 +113,20 @@ end end Eco::API::Organization::People.new(people) end + def s3upload_targets + [].tap do |paths| + session.config.s3storage.target_files.each_with_object(paths) do |file, arr| + arr.push(session.s3upload(file: file)) + end + session.config.s3storage.target_directories.each_with_object(paths) do |folder, arr| + arr.concat(session.s3upload(directory: folder)) + end + end + end + private # MODIFIERS def use_api?(modifier) modifiers = [modifier].flatten