Class: Vagrant::Action::VM::Customize
- Inherits:
-
Object
- Object
- Vagrant::Action::VM::Customize
- Defined in:
- lib/vagrant/action/vm/customize.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ Customize
constructor
A new instance of Customize.
Constructor Details
#initialize(app, env) ⇒ Customize
Returns a new instance of Customize.
5 6 7 |
# File 'lib/vagrant/action/vm/customize.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 |
# File 'lib/vagrant/action/vm/customize.rb', line 9 def call(env) if !env.env.config.vm.proc_stack.empty? env.ui.info I18n.t("vagrant.actions.vm.customize.running") env.env.config.vm.run_procs!(env["vm"].vm) env["vm"].vm.save end @app.call(env) end |