Skip to content

Instantly share code, notes, and snippets.

@cwsaylor
Created August 2, 2009 21:19
Show Gist options
  • Save cwsaylor/160211 to your computer and use it in GitHub Desktop.
Save cwsaylor/160211 to your computer and use it in GitHub Desktop.
#!/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 => '[email protected]',
: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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment