Class: AppUp::Hooks::Runner
- Inherits:
-
Struct
- Object
- Struct
- AppUp::Hooks::Runner
- Defined in:
- lib/app_up/hooks/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
5 6 7 |
# File 'lib/app_up/hooks/runner.rb', line 5 def files @files end |
#options ⇒ Object
Returns the value of attribute options
5 6 7 |
# File 'lib/app_up/hooks/runner.rb', line 5 def end |
#shell ⇒ Object
Returns the value of attribute shell
5 6 7 |
# File 'lib/app_up/hooks/runner.rb', line 5 def shell @shell end |
Instance Method Details
#run ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/app_up/hooks/runner.rb', line 7 def run hooks = Hooks::Loader.load hooks.each do |hook| hook.run(shell, files, ) end shell.flush end |