Sha256: 059613297c37afc61b4b6cd29f2eae64880f773c7b44c1216a13c95453174503

Contents?: true

Size: 563 Bytes

Versions: 1

Compression:

Stored size: 563 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do

  at_exit do
    if exception = $!
      Capistrano::Blaze::Message.failure(self, exception)
    end
  end

  namespace :campfire do

    task :start do
      Capistrano::Blaze::Message.start(self)
    end

    task :success do
      Capistrano::Blaze::Message.success(self)
    end

    desc "Sends a test message to Campfire"
    task :test_config do
      Capistrano::Blaze::Message.test(self)
    end

  end

  before "deploy",        "campfire:start"
  after "deploy:restart", "campfire:success"

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano-blaze-0.2.0 lib/capistrano/blaze/recipes.rb