class Golem::Command::UpdateHooks

Command for updating hooks in repositories.

Constants

USAGE

@private

Public Instance Methods

run() click to toggle source

Run the command. It runs {#clear_hooks} and {#install_hooks} on every repository.

# 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