Class: KumoDockerCloud::Stack
- Inherits:
-
Object
- Object
- KumoDockerCloud::Stack
- Defined in:
- lib/kumo_dockercloud/stack.rb
Instance Attribute Summary collapse
-
#app_name ⇒ Object
readonly
Returns the value of attribute app_name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#stack_name ⇒ Object
readonly
Returns the value of attribute stack_name.
Instance Method Summary collapse
- #deploy(version) ⇒ Object
-
#initialize(app_name, env_name, options = { contactable: true }) ⇒ Stack
constructor
A new instance of Stack.
Constructor Details
#initialize(app_name, env_name, options = { contactable: true }) ⇒ Stack
Returns a new instance of Stack.
5 6 7 8 9 |
# File 'lib/kumo_dockercloud/stack.rb', line 5 def initialize(app_name, env_name, = { contactable: true }) @app_name = app_name @stack_name = "#{app_name}-#{env_name}" @options = end |
Instance Attribute Details
#app_name ⇒ Object (readonly)
Returns the value of attribute app_name.
3 4 5 |
# File 'lib/kumo_dockercloud/stack.rb', line 3 def app_name @app_name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/kumo_dockercloud/stack.rb', line 3 def @options end |
#stack_name ⇒ Object (readonly)
Returns the value of attribute stack_name.
3 4 5 |
# File 'lib/kumo_dockercloud/stack.rb', line 3 def stack_name @stack_name end |
Instance Method Details
#deploy(version) ⇒ Object
11 12 13 14 15 |
# File 'lib/kumo_dockercloud/stack.rb', line 11 def deploy(version) update_image(version) redeploy validate_deployment(version) end |