Module: CfScript::Scope::App::State
- Included in:
- CfScript::Scope::App
- Defined in:
- lib/cf_script/scope/app/state.rb
Instance Method Summary collapse
- #push(options = {}) ⇒ Object
- #restage ⇒ Object
- #restart ⇒ Object
- #restart_instance(index) ⇒ Object
- #scale(options) ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Instance Method Details
#push(options = {}) ⇒ Object
21 22 23 24 25 |
# File 'lib/cf_script/scope/app/state.rb', line 21 def push( = {}) CfScript::Command.push name, do |app_info| @app_info = app_info if app_info end end |
#restage ⇒ Object
27 28 29 30 31 |
# File 'lib/cf_script/scope/app/state.rb', line 27 def restage CfScript::Command.restage name do |app_info| @app_info = app_info if app_info end end |
#restart ⇒ Object
15 16 17 18 19 |
# File 'lib/cf_script/scope/app/state.rb', line 15 def restart CfScript::Command.restart name do |app_info| @app_info = app_info if app_info end end |
#restart_instance(index) ⇒ Object
39 40 41 42 43 |
# File 'lib/cf_script/scope/app/state.rb', line 39 def restart_instance(index) CfScript::Command.restart_app_instance name, index do |restarted| cf_self end end |
#scale(options) ⇒ Object
33 34 35 36 37 |
# File 'lib/cf_script/scope/app/state.rb', line 33 def scale() CfScript::Command.scale name, do |scaled| cf_self end end |