Skip to content

Instantly share code, notes, and snippets.

@madAndroid
Forked from nathany/deploy.rb
Created February 13, 2013 07:40
Show Gist options
  • Select an option

  • Save madAndroid/4942929 to your computer and use it in GitHub Desktop.

Select an option

Save madAndroid/4942929 to your computer and use it in GitHub Desktop.
set :user, 'vagrant'
set :run_method, :sudo
role :app, '33.33.33.10'
ssh_options[:keys] = `vagrant ssh_config | grep IdentityFile`.split.last
package :rvm do
description 'Ruby Version Manager'
runner 'curl -LsS http://bit.ly/rvm-install-system-wide > rvm-install-system-wide'
runner 'bash < ./rvm-install-system-wide'
requires :rvm_dependencies
verify do
has_executable 'rvm'
end
end
package :rvm_dependencies do
description 'Ruby Version Manager Build Dependencies'
apt %w(curl bison build-essential zlib1g-dev libssl-dev libreadline5-dev libxml2-dev git-core)
end
policy :vagrant, :roles => :app do
requires :rvm
end
deployment do
delivery :capistrano
source do
prefix '/usr/local'
archives '/usr/local/sources'
builds '/usr/local/build'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment