Sha256: 64c8e9a843f65be3561d3aa9c1f5b1053a55aa83cc48d23a983ea0746adf08bd

Contents?: true

Size: 770 Bytes

Versions: 2

Compression:

Stored size: 770 Bytes

Contents

######################################################################
#                           NOTIFIERS SETUP                          #
######################################################################
Capistrano::Configuration.instance(:must_exist).load do
  extend ChickenSoup

  require 'chicken_soup/notifiers/defaults'
  require "chicken_soup/notifiers/checks"
  require "chicken_soup/notifiers/tasks"

  ['defaults', 'checks', 'tasks'].each do |method|
    desc "[internal] This task is only here because `require` cannot be used within a `namespace`"
    task "load_notifier_#{method}".to_sym do
      fetch(:notifiers).each do |notifier|
        require_if_exists "chicken_soup/notifiers/#{notifier}/#{notifier}-#{method}"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chicken_soup-0.6.1 lib/chicken_soup/notifiers.rb
chicken_soup-0.6.0 lib/chicken_soup/notifiers.rb