Class: Golem::Command::UpdateHooks

Inherits:
Base
  • Object
show all
Includes:
ManageHooks
Defined in:
lib/golem/command/update_hooks.rb

Overview

Command for updating hooks in repositories.

Instance Method Summary collapse

Methods included from ManageHooks

#clear_hooks, #install_hooks

Methods inherited from Base

#command, #initialize, #verbose?

Constructor Details

This class inherits a constructor from Golem::Command::Base

Instance Method Details

#runObject

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