# Requires config file config/campfire.yml with the following settings: # account: "foo" # email: "bar@baz.com" # password: "changeme" # ssl: false # room: "foobar" require 'tinder' namespace :deploy do task :campfire do config = YAML.load_file("config/campfire.yml") campfire = Tinder::Campfire.new config['account'], :ssl => config['ssl'] campfire.login config['email'], config['password'] ROOM = campfire.find_room_by_name config['room'] end task :pre_announce do deploy.campfire ROOM.paste "#{ENV['USER']} is preparing to deploy #{application} to #{stage}" end task :post_announce do ROOM.paste "#{ENV['USER']} finished deploying #{application} to #{stage}" end before "deploy", "deploy:pre_announce" after "deploy", "deploy:post_announce" end