Class: Golem::Command::UpdateHooks
- Includes:
- ManageHooks
- Defined in:
- lib/golem/command/update_hooks.rb
Overview
Command for updating hooks in repositories.
Instance Method Summary collapse
-
#run ⇒ Object
Run the command.
Methods included from ManageHooks
Methods inherited from Base
#command, #initialize, #verbose?
Constructor Details
This class inherits a constructor from Golem::Command::Base
Instance Method Details
#run ⇒ Object
Run the command. It runs ManageHooks#clear_hooks and ManageHooks#install_hooks on every repository.
8 9 10 11 12 13 |
# File 'lib/golem/command/update_hooks.rb', line 8 def run Golem::Access.repositories.each do |repo| clear_hooks(repo) install_hooks(repo) end end |