Class: VagrantPlugins::VagrantHook::AddBoxHook
- Inherits:
-
HookActionAbstract
- Object
- HookActionAbstract
- VagrantPlugins::VagrantHook::AddBoxHook
- Defined in:
- lib/vagrant_hook/plugin.rb
Instance Method Summary collapse
-
#initialize(app, env) ⇒ AddBoxHook
constructor
A new instance of AddBoxHook.
Methods inherited from HookActionAbstract
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 |