Sha256: cc46b3769f7bc544d813e4f7a274f1c9212f39683f32e1a007e1caca9f6a0f1c
Contents?: true
Size: 717 Bytes
Versions: 3
Compression:
Stored size: 717 Bytes
Contents
module CapistranoDeploy module Rvm def self.load_into(configuration) configuration.load do set :rvm_ruby_string, 'default' set :rvm_path, '/usr/local/rvm' set(:rvm_shell_path) { "#{rvm_path}/bin/rvm-shell" } set :default_shell do shell = rvm_shell_path ruby = rvm_ruby_string.to_s.strip shell = "rvm_path=#{rvm_path} #{shell} '#{ruby}'" unless ruby.empty? shell end if File.exists?('.rvmrc') matches = File.read('.rvmrc').scan(/^rvm\s+use\s+.*?([\w\-\.]+@[\w\-]+).*$/) if matches.any? set :rvm_ruby_string, matches.last.first end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
capistrano-deploy-0.3.2 | lib/capistrano-deploy/rvm.rb |
capistrano-deploy-0.3.1 | lib/capistrano-deploy/rvm.rb |
capistrano-deploy-0.3.0 | lib/capistrano-deploy/rvm.rb |