Skip to content

Commit

Permalink
add example to site_config.rb file
Browse files Browse the repository at this point in the history
  • Loading branch information
gnufied committed Jan 25, 2010
1 parent 97eafa3 commit 401ed6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/site_config.rb_example
Expand Up @@ -51,6 +51,10 @@
# build page in the notification message.
# Configuration.dashboard_url = 'http://my.cruisecontrolrb.host/'

# For twitter integration
# Configuration.twitter_username = 'foo'
# Configuration.twitter_password = 'bar'

# If you don't want to allow triggering builds through dashboard Build Now button. Useful when you host CC.rb as a
# public web site (such as http://cruisecontrolrb.thoughtworks.com/projects - try clicking on Build Now button there
# and see what happens):
Expand Down
1 change: 1 addition & 0 deletions lib/builder_plugins/twitter_notifier.rb
Expand Up @@ -24,6 +24,7 @@ def build_fixed(build,previous_build)

def twit(build, messsage)
twitter_auth_info = Twitter::HTTPAuth.new(@username,@password,:ssl => true)
CruiseControl::Log.event("Sent twit to #{username} and password #{password}",:debug)
client = Twitter::Base.new(twitter_auth_info)
client.update(messsage)
end
Expand Down

0 comments on commit 401ed6b

Please sign in to comment.