def source_rvm_environment
      rvm_path = config_value_for(:rvm_path, self.class.default_rvm_path, false)
      actual_config = defined_config.merge('rvm_path' => rvm_path)
      config = []
      actual_config.each_pair do |k, v|
        config << "#{k}=#{escape_argument(v.to_s)}"
      end
      run_silently "export #{config.join(" ")}"
      run_silently :source, File.join(rvm_path, "scripts", "rvm")
    end
def source_rvm_environment
      rvm_path = config_value_for(:rvm_path, self.class.default_rvm_path, false)
      actual_config = defined_config.merge('rvm_path' => rvm_path)
      config = []
      actual_config.each_pair do |k, v|
        config << "#{k}=#{escape_argument(v.to_s)}"
      end
      run_silently "export #{config.join(" ")}"
      run_silently :source, File.join(rvm_path, "scripts", "rvm")
    end
Automatically load rvm config from the multiple sources.