Class: VagrantPlugins::VagrantHook::AddBoxHook

Inherits:
HookActionAbstract show all
Defined in:
lib/vagrant_hook/plugin.rb

Instance Method Summary collapse

Methods inherited from HookActionAbstract

#call

Constructor Details

#initialize(app, env) ⇒ AddBoxHook

Returns a new instance of AddBoxHook.



51
52
53
54
55
56
57
58
59
60
# File 'lib/vagrant_hook/plugin.rb', line 51

def initialize(app, env)
			super(app, env, Proc.new {
				m = env[:machine]
				if m.nil?
					[]
				else
					m.config.vagrant_hook.add_box_callbacks
				end
			})
end