Sha256: fd12d529f0900016eb1cdd0c5c2d2f2cfc794b7c23cbe1e7feea4e664152c377

Contents?: true

Size: 708 Bytes

Versions: 4

Compression:

Stored size: 708 Bytes

Contents

######################################################################
#                           NOTIFIERS CHECK                          #
######################################################################
Capistrano::Configuration.instance(:must_exist).load do
  before  'notifiers:check',         'load_notifier_checks'

  namespace :notifiers do
    namespace :check do
      desc "[internal] Runs checks for all of the notifiers listed."
      task :default do
        if exists?(:notifiers)
          fetch(:notifiers).each do |notifier|
            top.notifiers.check.send(notifier.to_s) if top.notifiers.check.respond_to?(notifier.to_sym)
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chicken_soup-0.4.1 lib/chicken_soup/notifiers/checks.rb
chicken_soup-0.4.0 lib/chicken_soup/notifiers/checks.rb
chicken_soup-0.3.0 lib/chicken_soup/notifiers/checks.rb
chicken_soup-0.2.0 lib/chicken_soup/notifiers/checks.rb