Sha256: e743dd88e5b7ba039beb79f012a185e61d4336fa06649bc7b1b0b2ee5daf3439

Contents?: true

Size: 593 Bytes

Versions: 12

Compression:

Stored size: 593 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  before  'notifiers:load_tasks',      'load_notifier_tasks'

  namespace :notifiers do
    desc <<-DESC
      [internal] A helper task used to load all of the tasks associated with the
      requested notifiers.
    DESC
    task :load_tasks do
    end

    desc <<-DESC
      Disables all notifiers for the current deployment.

      This task must be called prior to any of the `deploy` tasks.
    DESC
    task :disable do
      set :notifiers,     []
      callbacks[:after].delete_if {|c| c.source =~ /^notify:/}
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
chicken_soup-0.9.0 lib/chicken_soup/notifiers/tasks.rb
chicken_soup-0.8.6 lib/chicken_soup/notifiers/tasks.rb
chicken_soup-0.8.5 lib/chicken_soup/notifiers/tasks.rb
chicken_soup-0.8.4 lib/chicken_soup/notifiers/tasks.rb
chicken_soup-0.8.3 lib/chicken_soup/notifiers/tasks.rb
chicken_soup-0.8.2 lib/chicken_soup/notifiers/tasks.rb
chicken_soup-0.8.1 lib/chicken_soup/notifiers/tasks.rb
chicken_soup-0.8.0 lib/chicken_soup/notifiers/tasks.rb
chicken_soup-0.6.1 lib/chicken_soup/notifiers/tasks.rb
chicken_soup-0.6.0 lib/chicken_soup/notifiers/tasks.rb
chicken_soup-0.5.3 lib/chicken_soup/notifiers/tasks.rb
chicken_soup-0.5.2 lib/chicken_soup/notifiers/tasks.rb