#!/usr/bin/env ruby if ENV['TRAVIS_BRANCH'].strip == 'master' exec "export RAILS_ENV=development; rvm install 2.1.2 && rvm 2.1.2 do bundle install && rvm 2.1.2 do bundle exec cap production deploy" else puts "Not on master branch - no deploy." end