lib/eco/api/session.rb in eco-helpers-1.0.14 vs lib/eco/api/session.rb in eco-helpers-1.1.1
- old
+ new
@@ -212,9 +212,10 @@
# @see Eco::API::Common::Session::S3Uploader#upload_file
# @see Eco::API::Common::Session::S3Uploader#upload_directory
# @param content [String] content to be uploaded (requires `file`)
# @param file [String] name of the file to be uploaded
# @param directory [String] name of source directory to be uploaded
+ # @return [String, Array<String>] paths to S3
def s3upload(content: nil, file: nil, directory: nil)
if content && file
s3uploader.upload(file, content)
elsif file
s3uploader.upload_file(file)