Sha256: 3e4c2627a835fab01ede7746f23f684ae1b88a0127cd95756079999a4abbda13
Contents?: true
Size: 1.59 KB
Versions: 2
Compression:
Stored size: 1.59 KB
Contents
# encoding: utf-8 module MagicRecipes module Rvm def self.load_into(configuration) configuration.load do # => http://stackoverflow.com/questions/7313232/rvm-capistrano-and-bundler-path-issues $:.unshift(File.expand_path('./lib', ENV['rvm_path'])) require 'rvm/capistrano' set_default :rails_env, 'production' set_default :rvm_ruby, '1.9.3' set_default :rvm_patch, 'p0' set_default :rvm_gemset, 'global' set_default :rvm_path, '/usr/local/rvm' set :rvm_type, :system set :rvm_ruby_string, "ruby-#{rvm_ruby}-#{rvm_patch}@#{rvm_gemset}" set :rvm_path, "/usr/local/rvm" set :rvm_bin_path, "#{rvm_path}/bin" set :rvm_lib_path, "#{rvm_path}/lib" set :remote_bin_path, "#{rvm_path}/gems/ruby-#{rvm_ruby}-#{rvm_patch}/bin/" set :use_rvm, true # => set :default_environment, { # => 'PATH' => "#{rvm_path}/gems/ruby/1.9.1/bin:#{rvm_bin_path}/bin:#{remote_bin_path}:$PATH", # => 'RUBY_VERSION' => "#{rvm_ruby}", # => 'GEM_HOME' => "#{rvm_path}/gems/#{rvm_ruby_string}", # => 'GEM_PATH' => "#{rvm_path}/gems/#{rvm_ruby_string}", # => 'BUNDLE_PATH' => "#{rvm_path}/gems/#{rvm_ruby_string}" # => } set :bundle_dir, "#{rvm_path}/gems/#{rvm_ruby_string}" set :bundle_flags, "--deployment --verbose" # eof end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
magic_recipes-0.0.4 | lib/magic_recipes/rvm.rb |
magic_recipes-0.0.3 | lib/magic_recipes/rvm.rb |