Class: SimpleDeploy::Artifact

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_deploy/artifact.rb

Instance Method Summary collapse

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

#endpointsObject



16
17
18
# File 'lib/simple_deploy/artifact.rb', line 16

def endpoints
  { 's3' => s3_url, 'http' => http_url, 'https' => https_url }
end