-
-
Save madAndroid/4942929 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set :user, 'vagrant' | |
| set :run_method, :sudo | |
| role :app, '33.33.33.10' | |
| ssh_options[:keys] = `vagrant ssh_config | grep IdentityFile`.split.last |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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