Class: CloudfoundryBlueGreenDeploy::App

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudfoundry_blue_green_deploy/app.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, state: 'stopped') ⇒ App

Returns a new instance of App.



5
6
7
8
# File 'lib/cloudfoundry_blue_green_deploy/app.rb', line 5

def initialize(name: , state: 'stopped')
  @name = name
  @state = state
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/cloudfoundry_blue_green_deploy/app.rb', line 3

def name
  @name
end

#stateObject

Returns the value of attribute state.



3
4
5
# File 'lib/cloudfoundry_blue_green_deploy/app.rb', line 3

def state
  @state
end