cwsaylor (owner)

Revisions

gist: 160211 Download_button fork
public
Public Clone URL: git://gist.github.com/160211.git
Embed All Files: show embed
standup.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env ruby
require 'rubygems'
require 'tinder'
 
# Here is a cron entry to have your standup every day at 10:30
# 30 10 * * 1,2,3,4,5 /usr/bin/ruby /home/deploy/bin/standup.rb
 
# Change these options
 
config = {
  :domain => 'foo',
  :user => 'foo@bar.com',
  :pass => 'pass',
  :room => '999999',
  :ssl => false
}
 
campfire = Tinder::Campfire.new(config[:domain], :ssl => config[:ssl])
campfire.login config[:user], config[:pass]
room = Tinder::Room.new(campfire, config[:room])
 
room.speak "Standup - #{Time.now.strftime('%m/%d/%Y')} ===================="
room.leave