Class: Vagrant::LXC::Action::Boot
- Inherits:
-
Object
- Object
- Vagrant::LXC::Action::Boot
- Defined in:
- lib/vagrant-lxc/action/boot.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ Boot
constructor
A new instance of Boot.
Constructor Details
#initialize(app, env) ⇒ Boot
Returns a new instance of Boot.
5 6 7 |
# File 'lib/vagrant-lxc/action/boot.rb', line 5 def initialize(app, env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/vagrant-lxc/action/boot.rb', line 9 def call(env) @env = env config = env[:machine].provider_config config.customize 'utsname', env[:machine].id env[:ui].info I18n.t("vagrant_lxc.messages.starting") env[:machine].provider.driver.start(config.customizations) @app.call env end |