Module: PostCommit::Hooks

Defined in:
lib/post_commit/hooks.rb,
lib/post_commit/hooks/url.rb,
lib/post_commit/hooks/base.rb,
lib/post_commit/hooks/twitter.rb,
lib/post_commit/hooks/campfire.rb,
lib/post_commit/hooks/basecamp.rb,
lib/post_commit/hooks/light_house.rb,
lib/post_commit/hooks/friend_feed.rb

Defined Under Namespace

Classes: Base, Basecamp, Campfire, FriendFeed, LightHouse, Twitter, URL

Class Attribute Summary (collapse)

Class Method Summary (collapse)

Class Attribute Details

+ (Object) hooks

Returns the value of attribute hooks



4
5
6
# File 'lib/post_commit/hooks.rb', line 4

def hooks
  @hooks
end

Class Method Details

+ (Object) register(name, hook_class)

Register a hook.

PostCommit::Hooks.register :campfire, PostCommit::Hooks::Campfire


10
11
12
13
# File 'lib/post_commit/hooks.rb', line 10

def self.register(name, hook_class)
  self.hooks ||= {}
  self.hooks[name.to_sym] = hook_class
end