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
# File 'lib/simple_deploy/artifact.rb', line 4

def initialize(args)
  @bucket_prefix = args[:bucket_prefix]
  @config = args[:config]
  @id = args[:id]
  @name = args[:name]
  @region = args[:region]

  @bucket = "#{@bucket_prefix}-#{@region}"
  @key = "#{@id}.tar.gz"
end

Instance Method Details

#endpointsObject



15
16
17
18
19
20
21
# File 'lib/simple_deploy/artifact.rb', line 15

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