Class: VagrantPlugins::SoftLayer::Action::StartInstance
- Inherits:
-
Object
- Object
- VagrantPlugins::SoftLayer::Action::StartInstance
- Includes:
- Util::Warden
- Defined in:
- lib/vagrant-softlayer/action/start_instance.rb
Overview
This starts a stopped instance.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ StartInstance
constructor
A new instance of StartInstance.
Methods included from Util::Warden
Constructor Details
#initialize(app, env) ⇒ StartInstance
Returns a new instance of StartInstance.
8 9 10 |
# File 'lib/vagrant-softlayer/action/start_instance.rb', line 8 def initialize(app, env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/vagrant-softlayer/action/start_instance.rb', line 12 def call(env) env[:ui].info I18n.t("vagrant_softlayer.vm.starting") sl_warden { env[:sl_machine].powerOn } @app.call(env) end |