Class: EnvConfig
- Inherits:
-
Object
- Object
- EnvConfig
- Defined in:
- lib/heroploy/config/env_config.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.
Class Method Summary collapse
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app.
6 7 8 |
# File 'lib/heroploy/config/env_config.rb', line 6 def app @app end |
#checks ⇒ Object
Returns the value of attribute checks.
8 9 10 |
# File 'lib/heroploy/config/env_config.rb', line 8 def checks @checks end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/heroploy/config/env_config.rb', line 4 def name @name end |
#remote ⇒ Object
Returns the value of attribute remote.
5 6 7 |
# File 'lib/heroploy/config/env_config.rb', line 5 def remote @remote end |
#tag ⇒ Object
Returns the value of attribute tag.
7 8 9 |
# File 'lib/heroploy/config/env_config.rb', line 7 def tag @tag end |
Class Method Details
.parse(name, attrs) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/heroploy/config/env_config.rb', line 10 def self.parse(name, attrs) config = EnvConfig.new config.name = name config.remote = attrs['remote'] || name config.app = attrs['app'] config.tag = attrs['tag'] config.checks = ChecksConfig.parse(attrs['checks']) config end |