Class: Heroploy::Config::EnvironmentChecks
- Inherits:
-
Object
- Object
- Heroploy::Config::EnvironmentChecks
- Defined in:
- lib/heroploy/config/environment_checks.rb
Instance Attribute Summary collapse
-
#branch ⇒ Object
Returns the value of attribute branch.
-
#pushed ⇒ Object
Returns the value of attribute pushed.
-
#staged ⇒ Object
Returns the value of attribute staged.
-
#travis ⇒ Object
Returns the value of attribute travis.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ EnvironmentChecks
constructor
A new instance of EnvironmentChecks.
Constructor Details
#initialize(attrs = {}) ⇒ EnvironmentChecks
Returns a new instance of EnvironmentChecks.
9 10 11 12 13 14 15 |
# File 'lib/heroploy/config/environment_checks.rb', line 9 def initialize(attrs = {}) attrs ||= {} @pushed = attrs['pushed'] @branch = attrs['branch'] @staged = attrs['staged'] == true ? 'staging' : attrs['staged'] @travis = attrs['travis'] end |
Instance Attribute Details
#branch ⇒ Object
Returns the value of attribute branch.
5 6 7 |
# File 'lib/heroploy/config/environment_checks.rb', line 5 def branch @branch end |
#pushed ⇒ Object
Returns the value of attribute pushed.
4 5 6 |
# File 'lib/heroploy/config/environment_checks.rb', line 4 def pushed @pushed end |
#staged ⇒ Object
Returns the value of attribute staged.
6 7 8 |
# File 'lib/heroploy/config/environment_checks.rb', line 6 def staged @staged end |
#travis ⇒ Object
Returns the value of attribute travis.
7 8 9 |
# File 'lib/heroploy/config/environment_checks.rb', line 7 def travis @travis end |