Class: AppUp::HookRunner
- Inherits:
-
Struct
- Object
- Struct
- AppUp::HookRunner
- Defined in:
- lib/app_up/hook_runner.rb
Instance Attribute Summary collapse
-
#files ⇒ Object
Returns the value of attribute files.
-
#options ⇒ Object
Returns the value of attribute options.
-
#shell ⇒ Object
Returns the value of attribute shell.
Instance Method Summary collapse
Instance Attribute Details
#files ⇒ Object
Returns the value of attribute files
4 5 6 |
# File 'lib/app_up/hook_runner.rb', line 4 def files @files end |
#options ⇒ Object
Returns the value of attribute options
4 5 6 |
# File 'lib/app_up/hook_runner.rb', line 4 def @options end |
#shell ⇒ Object
Returns the value of attribute shell
4 5 6 |
# File 'lib/app_up/hook_runner.rb', line 4 def shell @shell end |
Instance Method Details
#run ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/app_up/hook_runner.rb', line 6 def run hooks = HookLoader.load hooks.each do |hook| hook.run(shell, files, ) end shell.flush end |