Method: Capistrano::Plugin#register_hooks

Defined in:
lib/capistrano/plugin.rb

#register_hooksObject

Implemented by subclasses to hook into Capistrano’s deployment flow using using the before and after DSL methods. Note that register_hooks will not be called if the user has opted-out of hooks when installing the plugin.

Example:

def register_hooks
  after "deploy:updated", "my_plugin:do_something"
end


59
# File 'lib/capistrano/plugin.rb', line 59

def register_hooks; end