Sha256: dddfad23cb14fa37840ca3af23e10ea43e9679f754fd7221c4807f210c3109a8

Contents?: true

Size: 1.19 KB

Versions: 13

Compression:

Stored size: 1.19 KB

Contents

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

  namespace :notifiers do
    namespace :variable 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.variable.check.send(notifier.to_s) if top.notifiers.variable.check.respond_to?(notifier.to_sym)
            end
          end
        end
      end
    end

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

Version data entries

13 entries across 13 versions & 1 rubygems

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