Created
August 2, 2009 21:19
-
-
Save cwsaylor/160211 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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