Class: Celebrations::Campfire

Inherits:
Celebration show all
Defined in:
lib/release_party/celebrations/campfire.rb

Instance Attribute Summary collapse

Attributes inherited from Celebration

#environment

Instance Method Summary collapse

Methods inherited from Celebration

inherited, #tasks

Constructor Details

#initialize(env) ⇒ Campfire

Returns a new instance of Campfire.



9
10
11
12
13
14
15
16
17
18
19
20
21
# 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.,
    :token => environment.campfire_token,
    :ssl => ssl
  @campfire.find_room_by_name(environment.campfire_room)
end

Instance Attribute Details

#campfireObject (readonly)

Returns the value of attribute campfire.



7
8
9
# File 'lib/release_party/celebrations/campfire.rb', line 7

def campfire
  @campfire
end

Instance Method Details

#after_deployObject



23
24
25
# File 'lib/release_party/celebrations/campfire.rb', line 23

def after_deploy
  @campfire.speak environment.campfire_begin_message
end

#before_deployObject



27
28
29
# File 'lib/release_party/celebrations/campfire.rb', line 27

def before_deploy
  @campfire.speak environment.campfire_after_message
end