Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
add hubot tweet script
Browse files Browse the repository at this point in the history
dwradcliffe committed Feb 16, 2015
1 parent 997b0ff commit 8abf37e
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -282,7 +282,7 @@ GRAPH
dns (>= 0.0.0)
hostname (>= 0.0.0)
rubygems-hosts (0.0.10)
rubygems-hubot (0.0.64)
rubygems-hubot (0.0.66)
chef-vault (>= 0.0.0)
hubot (~> 1.0.2)
nginx (>= 0.0.0)
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ task :refresh_vaults do
'certs/staging',
'dnsimple/credentials',
'duo/credentials',
'hubot/credentials',
'librato/credentials',
'papertrail/credentials',
'rubygems/production',
2 changes: 1 addition & 1 deletion cookbooks/rubygems-hubot/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name 'rubygems-hubot'

version '0.0.64'
version '0.0.66'

depends 'chef-vault'
depends 'hubot', '~> 1.0.2'
7 changes: 6 additions & 1 deletion cookbooks/rubygems-hubot/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@

include_recipe 'chef-vault'
slack_secrets = chef_vault_item('slack', 'hubot')
hubot_secrets = chef_vault_item('hubot', 'credentials')

node.set['hubot']['version'] = '2.11.0'
node.set['hubot']['scripts_version'] = '2.5.16'
@@ -15,17 +16,21 @@

node.set['hubot']['dependencies'] = {
'hubot-slack' => '~3.1.0',
'hubot-tweeter' => '~0.3.1',
'async' => '^0.9.0'
}

node.set['hubot']['hubot_scripts'] = []

node.set['hubot']['external_scripts'] = []
node.set['hubot']['external_scripts'] = ['hubot-tweeter']

node.set['hubot']['config'] = {
'HUBOT_SLACK_TOKEN' => slack_secrets['token'],
'HUBOT_SLACK_TEAM' => 'bundler',
'HUBOT_SLACK_BOTNAME' => 'hubot',
'HUBOT_TWITTER_CONSUMER_KEY' => hubot_secrets['twitter_consumer_key'],
'HUBOT_TWITTER_CONSUMER_SECRET' => hubot_secrets['twitter_consumer_secret'],
'HUBOT_TWEETER_ACCOUNTS' => "{\"rubygems_status\":{\"access_token\":\"#{hubot_secrets['twitter_access_token']}\",\"access_token_secret\":\"#{hubot_secrets['twitter_access_token_secret']}\"}}",
'HUBOT_DEPLOY_DIR' => "#{node['rubygems-hubot']['deploy_dir']}/staging",
'HUBOT_DEPLOY_LOG_DIR' => '/var/log/hubot_deploys'
}

0 comments on commit 8abf37e

Please sign in to comment.