Class: Heroploy::Config::Environment
- Inherits:
-
Object
- Object
- Heroploy::Config::Environment
- Defined in:
- lib/heroploy/config/environment.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
-
#checks ⇒ Object
Returns the value of attribute checks.
-
#name ⇒ Object
Returns the value of attribute name.
-
#remote ⇒ Object
Returns the value of attribute remote.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#variables ⇒ Object
Returns the value of attribute variables.
Instance Method Summary collapse
-
#initialize(name = nil, attrs = {}) ⇒ Environment
constructor
A new instance of Environment.
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
#app ⇒ Object
Returns the value of attribute app.
8 9 10 |
# File 'lib/heroploy/config/environment.rb', line 8 def app @app end |
#checks ⇒ Object
Returns the value of attribute checks.
10 11 12 |
# File 'lib/heroploy/config/environment.rb', line 10 def checks @checks end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/heroploy/config/environment.rb', line 6 def name @name end |
#remote ⇒ Object
Returns the value of attribute remote.
7 8 9 |
# File 'lib/heroploy/config/environment.rb', line 7 def remote @remote end |
#tag ⇒ Object
Returns the value of attribute tag.
9 10 11 |
# File 'lib/heroploy/config/environment.rb', line 9 def tag @tag end |
#variables ⇒ Object
Returns the value of attribute variables.
11 12 13 |
# File 'lib/heroploy/config/environment.rb', line 11 def variables @variables end |