class Celebrations::Campfire

Attributes

campfire[R]

Public Class Methods

new(env) click to toggle source
Calls superclass method Celebration::new
# File lib/release_party/celebrations/campfire.rb, line 9
def initialize(env)
  super env
  arguments_required(:campfire_account, :campfire_room, :campfire_token)

  require 'tinder'

  ssl = environment.campfire_ssl
  @campfire = ::Tinder::Campfire.new \
    environment.campfire_account,
    :token => environment.campfire_token,
    :ssl => ssl
  @campfire.find_room_by_name(environment.campfire_room)
end

Public Instance Methods

after_deploy() click to toggle source
# File lib/release_party/celebrations/campfire.rb, line 23
def after_deploy
  @campfire.speak environment.campfire_begin_message
end
before_deploy() click to toggle source
# File lib/release_party/celebrations/campfire.rb, line 27
def before_deploy
  @campfire.speak environment.campfire_after_message
end