Class: Heroploy::Config::Environment

Inherits:
Object
  • Object
show all
Defined in:
lib/heroploy/config/environment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, attrs = {}) ⇒ Environment

Returns a new instance of Environment.



13
14
15
16
17
18
19
20
# File 'lib/heroploy/config/environment.rb', line 13

def initialize(name = nil, attrs = {})
  @name = name
  @remote = attrs['remote'] || name
  @app = attrs['app']
  @tag = attrs['tag']
  @variables = attrs['variables'] || {}
  @checks = EnvironmentChecks.new(attrs['checks'])
end

Instance Attribute Details

#appObject

Returns the value of attribute app.



8
9
10
# File 'lib/heroploy/config/environment.rb', line 8

def app
  @app
end

#checksObject

Returns the value of attribute checks.



10
11
12
# File 'lib/heroploy/config/environment.rb', line 10

def checks
  @checks
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/heroploy/config/environment.rb', line 6

def name
  @name
end

#remoteObject

Returns the value of attribute remote.



7
8
9
# File 'lib/heroploy/config/environment.rb', line 7

def remote
  @remote
end

#tagObject

Returns the value of attribute tag.



9
10
11
# File 'lib/heroploy/config/environment.rb', line 9

def tag
  @tag
end

#variablesObject

Returns the value of attribute variables.



11
12
13
# File 'lib/heroploy/config/environment.rb', line 11

def variables
  @variables
end