Sha256: 2349d25af36f2f025eef8a23f2cd92a16bfd5d4c24d8eab01973eecc82e03cbe

Contents?: true

Size: 726 Bytes

Versions: 45

Compression:

Stored size: 726 Bytes

Contents

module CapistranoDeployManagement
  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

45 entries across 45 versions & 1 rubygems

Version Path
capistrano-deploy-management-0.1.47 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.46 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.45 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.44 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.43 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.42 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.41 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.40 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.39 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.38 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.37 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.36 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.35 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.34 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.33 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.32 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.31 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.30 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.29 lib/capistrano-deploy-management/rvm.rb
capistrano-deploy-management-0.1.28 lib/capistrano-deploy-management/rvm.rb