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/basecamp.rb,
lib/post_commit/hooks/campfire.rb,
lib/post_commit/hooks/friend_feed.rb,
lib/post_commit/hooks/light_house.rb
Defined Under Namespace
Classes: Base, Basecamp, Campfire, FriendFeed, LightHouse, Twitter, URL
Class Attribute Summary collapse
-
.hooks ⇒ Object
Returns the value of attribute hooks.
Class Method Summary collapse
-
.register(name, hook_class) ⇒ Object
Register a hook.
Class Attribute Details
.hooks ⇒ Object
Returns the value of attribute hooks.
4 5 6 |
# File 'lib/post_commit/hooks.rb', line 4 def hooks @hooks end |
Class Method Details
.register(name, hook_class) ⇒ Object
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 |