lib/simple_deploy/artifact.rb in simple_deploy-0.6.3 vs lib/simple_deploy/artifact.rb in simple_deploy-0.6.4
- old
+ new
@@ -1,16 +1,17 @@
module SimpleDeploy
class Artifact
def initialize(args)
@bucket_prefix = args[:bucket_prefix]
- @id = args[:id]
- @name = args[:name]
- @region = args[:region]
- @domain = args[:domain]
+ @id = args[:id]
+ @name = args[:name]
+ @region = args[:region]
+ @domain = args[:domain]
+ @encrypted = args[:encrypted]
@bucket = "#{@bucket_prefix}-#{@region}"
- @key = "#{@id}.tar.gz"
+ @key = @encrypted ? "#{@id}.tar.gz.gpg" : "#{@id}.tar.gz"
end
def endpoints
{ 's3' => s3_url, 'http' => http_url, 'https' => https_url }
end