Module: Minfra::Cli::Hook::ClassMethods
- Defined in:
- lib/minfra/cli/hook.rb
Instance Method Summary collapse
- #after_hook(*names, &block) ⇒ Object
- #before_hook(*names, &block) ⇒ Object
- #call_after_hooks(obj, names) ⇒ Object
- #call_before_hooks(obj, names) ⇒ Object
Instance Method Details
#after_hook(*names, &block) ⇒ Object
96 97 98 |
# File 'lib/minfra/cli/hook.rb', line 96 def after_hook(*names, &block) hooks.register_after(names, block) end |
#before_hook(*names, &block) ⇒ Object
100 101 102 |
# File 'lib/minfra/cli/hook.rb', line 100 def before_hook(*names, &block) hooks.register_before(names, block) end |
#call_after_hooks(obj, names) ⇒ Object
108 109 110 |
# File 'lib/minfra/cli/hook.rb', line 108 def call_after_hooks(obj, names) hooks.call_after_hooks(obj, names) end |
#call_before_hooks(obj, names) ⇒ Object
104 105 106 |
# File 'lib/minfra/cli/hook.rb', line 104 def call_before_hooks(obj, names) hooks.call_before_hooks(obj, names) end |