Skip to content

Instantly share code, notes, and snippets.

@boxcar
boxcar / boxcar_deploy.rb
Created July 22, 2011 00:04
Boxcar deployment notifications for Ruby on Rails
# Boxcar Deployment Notifications for Ruby on Rails
# In your config/deploy.rb:
task :production do
# You will have other / more stuff here. You want to add this though:
set :deploy_notifications, %W[example@example.com example2@example.com]
end
#!/bin/bash
# Include commit rev script by @bsneed
#
buildPlist="${PRODUCT_NAME}-Info.plist"
buildCommit=$(/usr/local/git/bin/git --work-tree="${PROJECT_DIR}" show --abbrev-commit | grep "^commit")
/usr/libexec/PlistBuddy -c "Add :CFBundleCommit string $buildCommit" $buildPlist
if [ $? != 0 ]
then
/usr/libexec/PlistBuddy -c "Set :CFBundleCommit $buildCommit" $buildPlist
fi
#!/usr/bin/env ruby
require 'rubygems'
require 'tweetstream'
require 'boxcar_api'
SETTINGS = {
:key => 'xyz', # Provider Key
:secret => 'xyz', # Provider Secret
:tweeter => 'macrumorslive' # Whom we'll be following on Twitter
:tweeter_id => 1581511, # The tweeter's user id (check their RSS feed)