Class: Heroploy::Config::EnvironmentChecks

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#branchObject

Returns the value of attribute branch.



5
6
7
# File 'lib/heroploy/config/environment_checks.rb', line 5

def branch
  @branch
end

#pushedObject

Returns the value of attribute pushed.



4
5
6
# File 'lib/heroploy/config/environment_checks.rb', line 4

def pushed
  @pushed
end

#stagedObject

Returns the value of attribute staged.



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

def staged
  @staged
end

#travisObject

Returns the value of attribute travis.



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

def travis
  @travis
end