Sha256: d7cfc13d4a9b41690bcc16b3e7318a18ff657aea1b952cd4d63d64bc88760229

Contents?: true

Size: 841 Bytes

Versions: 17

Compression:

Stored size: 841 Bytes

Contents

######################################################################
#                        DEFAULT NOTIFIERS SETUP                     #
######################################################################
Capistrano::Configuration.instance(:must_exist).load do
  before  'notifiers:defaults',         'load_notifier_defaults'

  namespace :notifiers do
    namespace :defaults do
      desc <<-DESC
        [internal] Installs the entire notifiers for the given deployment type.

        Most of these values can be overridden in each application's deploy.rb file.
      DESC
      task :default do
        if exists?(:notifiers)
          fetch(:notifiers).each do |notifier|
            notifiers.defaults.send(notifier.to_s) if notifiers.defaults.respond_to?(notifier.to_sym)
          end
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
chicken_soup-0.9.0 lib/chicken_soup/notifiers/defaults.rb
chicken_soup-0.8.6 lib/chicken_soup/notifiers/defaults.rb
chicken_soup-0.8.5 lib/chicken_soup/notifiers/defaults.rb
chicken_soup-0.8.4 lib/chicken_soup/notifiers/defaults.rb
chicken_soup-0.8.3 lib/chicken_soup/notifiers/defaults.rb
chicken_soup-0.8.2 lib/chicken_soup/notifiers/defaults.rb
chicken_soup-0.8.1 lib/chicken_soup/notifiers/defaults.rb
chicken_soup-0.8.0 lib/chicken_soup/notifiers/defaults.rb
chicken_soup-0.6.1 lib/chicken_soup/notifiers/defaults.rb
chicken_soup-0.6.0 lib/chicken_soup/notifiers/defaults.rb
chicken_soup-0.5.3 lib/chicken_soup/notifiers/defaults.rb
chicken_soup-0.5.2 lib/chicken_soup/notifiers/defaults.rb
chicken_soup-0.5.0 lib/chicken_soup/notifiers/defaults.rb
chicken_soup-0.4.1 lib/chicken_soup/notifiers/defaults.rb
chicken_soup-0.4.0 lib/chicken_soup/notifiers/defaults.rb
chicken_soup-0.3.0 lib/chicken_soup/notifiers/defaults.rb
chicken_soup-0.2.0 lib/chicken_soup/notifiers/defaults.rb