module CfScript::Scope::App::State

Public Instance Methods

push(options = {}) click to toggle source
# File lib/cf_script/scope/app/state.rb, line 21
def push(options = {})
  CfScript::Command.push name, options do |app_info|
    @app_info = app_info if app_info
  end
end
restage() click to toggle source
# 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() click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# File lib/cf_script/scope/app/state.rb, line 33
def scale(options)
  CfScript::Command.scale name, options do |scaled|
    cf_self
  end
end
start() click to toggle source
# File lib/cf_script/scope/app/state.rb, line 3
def start
  CfScript::Command.start name do |app_info|
    @app_info = app_info if app_info
  end
end
stop() click to toggle source
# File lib/cf_script/scope/app/state.rb, line 9
def stop
  CfScript::Command.stop name do |stopped|
    cf_self
  end
end