lib/simple_deploy/artifact.rb in simple_deploy-0.2.8 vs lib/simple_deploy/artifact.rb in simple_deploy-0.3.0

- old
+ new

@@ -5,10 +5,11 @@ @bucket_prefix = args[:bucket_prefix] @config = args[:config] @id = args[:id] @name = args[:name] @region = args[:region] + @domain = @config.artifact_domain @name @bucket = "#{@bucket_prefix}-#{@region}" @key = "#{@id}.tar.gz" end @@ -21,18 +22,18 @@ end private def s3_url - "s3://#{@bucket}/#{@name}/#{@key}" + "s3://#{@bucket}/#{@domain}/#{@key}" end def http_url - "http://#{s3_endpoints[@region]}/#{@bucket}/#{@name}/#{@key}" + "http://#{s3_endpoints[@region]}/#{@bucket}/#{@domain}/#{@key}" end def https_url - "https://#{s3_endpoints[@region]}/#{@bucket}/#{@name}/#{@key}" + "https://#{s3_endpoints[@region]}/#{@bucket}/#{@domain}/#{@key}" end def s3_endpoints { 'us-east-1' => 's3.amazonaws.com',