Class: SimpleDeploy::Artifact
- Inherits:
-
Object
- Object
- SimpleDeploy::Artifact
- Defined in:
- lib/simple_deploy/artifact.rb
Instance Method Summary collapse
- #endpoints ⇒ Object
-
#initialize(args) ⇒ Artifact
constructor
A new instance of Artifact.
Constructor Details
#initialize(args) ⇒ Artifact
Returns a new instance of Artifact.
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/simple_deploy/artifact.rb', line 4 def initialize(args) @bucket_prefix = args[:bucket_prefix] @id = args[:id] @name = args[:name] @region = args[:region] @domain = args[:domain] @encrypted = args[:encrypted] @bucket = "#{@bucket_prefix}-#{@region}" @key = @encrypted ? "#{@id}.tar.gz.gpg" : "#{@id}.tar.gz" end |
Instance Method Details
#endpoints ⇒ Object
16 17 18 |
# File 'lib/simple_deploy/artifact.rb', line 16 def endpoints { 's3' => s3_url, 'http' => http_url, 'https' => https_url } end |