Class: Celebrations::Campfire
- Inherits:
-
Celebration
- Object
- Celebration
- Celebrations::Campfire
- Defined in:
- lib/release_party/celebrations/campfire.rb
Instance Attribute Summary collapse
-
#campfire ⇒ Object
readonly
Returns the value of attribute campfire.
Attributes inherited from Celebration
Instance Method Summary collapse
- #after_deploy ⇒ Object
- #before_deploy ⇒ Object
-
#initialize(env) ⇒ Campfire
constructor
A new instance of Campfire.
Methods inherited from Celebration
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.campfire_account, :token => environment.campfire_token, :ssl => ssl @campfire.find_room_by_name(environment.campfire_room) end |
Instance Attribute Details
#campfire ⇒ Object (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_deploy ⇒ Object
23 24 25 |
# File 'lib/release_party/celebrations/campfire.rb', line 23 def after_deploy @campfire.speak environment. end |
#before_deploy ⇒ Object
27 28 29 |
# File 'lib/release_party/celebrations/campfire.rb', line 27 def before_deploy @campfire.speak environment. end |