aruba 0.14.8 → 0.14.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,37 +0,0 @@
1
- require 'aruba/api/environment'
2
- require 'aruba/api/commands'
3
-
4
- # Aruba
5
- module Aruba
6
- # Api
7
- module Api
8
- # RVM
9
- #
10
- # @deprecated
11
- module Rvm
12
- # Use a clean rvm gemset
13
- #
14
- # Please make sure that you've got [rvm](http://rvm.io/) installed.
15
- #
16
- # @param [String] gemset
17
- # The name of the gemset to be used
18
- def use_clean_gemset(gemset)
19
- run_command_and_stop(%{rvm gemset create "#{gemset}"}, true)
20
- if all_stdout =~ /'#{gemset}' gemset created \((.*)\)\./
21
- gem_home = Regexp.last_match[1]
22
- set_environment_variable('GEM_HOME', gem_home)
23
- set_environment_variable('GEM_PATH', gem_home)
24
- set_environment_variable('BUNDLE_PATH', gem_home)
25
-
26
- paths = (ENV['PATH'] || "").split(File::PATH_SEPARATOR)
27
- paths.unshift(File.join(gem_home, 'bin'))
28
- set_environment_variable('PATH', paths.uniq.join(File::PATH_SEPARATOR))
29
-
30
- run_command_and_stop("gem install bundler", true)
31
- else
32
- raise "I didn't understand rvm's output: #{all_stdout}"
33
- end
34
- end
35
- end
36
- end
37
- end