Class: Capistrano::Campfire

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano/campfire.rb

Class Method Summary collapse

Class Method Details

.load_into(configuration) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/capistrano/campfire.rb', line 5

def self.load_into(configuration)
  configuration.load do
    set :campfire_options, {}

    set :campfire_room do
      require 'tinder'

       = campfire_options[:account]
      token = campfire_options[:token]
      ssl = campfire_options[:ssl]
      room_name = campfire_options[:room]

      campfire = ::Tinder::Campfire.new ,
        :token => token,
        :ssl => ssl

      campfire.find_room_by_name(room_name)
    end
  end
end