Sha256: 8c67168f757252beeb4d1b80d1620e116541c76832937f91ea8253c976e9132e
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
module Heirloom class ArtifactUploader def initialize(args) @config = args[:config] @logger = args[:logger] end def upload(args) id = args[:id] file = args[:file] key_folder = args[:name] key_name = "#{id}.tar.gz" name = args[:name] public_readable = args[:public_readable] @config.regions.each do |region| bucket = "#{@config.bucket_prefix}-#{region}" s3_uploader = Uploader::S3.new :config => @config, :logger => @logger, :region => region s3_uploader.upload_file :bucket => bucket, :file => file, :id => id, :key_folder => key_folder, :key_name => key_name, :name => name, :public_readable => public_readable end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
heirloom-0.1.2 | lib/heirloom/artifact/artifact_uploader.rb |
heirloom-0.1.1 | lib/heirloom/artifact/artifact_uploader.rb |