rconf 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -21,8 +21,10 @@ module RightConf
|
|
21
21
|
|
22
22
|
description 'Installs bundler and runs "bundle install"'
|
23
23
|
|
24
|
-
settings :version
|
25
|
-
:
|
24
|
+
settings :version => 'Version of bundler gem, e.g. "1.0.10"',
|
25
|
+
:exclusions => 'Gem groups to be excluded when installing bundle',
|
26
|
+
:bundle_path => 'Path where bundle should be installed',
|
27
|
+
:gem_path => 'Path to bundler gem, e.g. "vendor/system_gems/cache"'
|
26
28
|
|
27
29
|
validate_has_settings :version
|
28
30
|
|
@@ -37,7 +39,11 @@ module RightConf
|
|
37
39
|
report_result(success)
|
38
40
|
install_bundler unless success
|
39
41
|
report_check('Installing gems')
|
40
|
-
|
42
|
+
options = [ 'install' ]
|
43
|
+
options << "--without=#{exclusions}" unless exclusions.nil?
|
44
|
+
options << "--path #{bundle_path}" unless bundle_path.nil?
|
45
|
+
options << { :abort_on_failure => 'Failed to install gems' }
|
46
|
+
res = Command.execute('bundle', *options)
|
41
47
|
report_success
|
42
48
|
true
|
43
49
|
end
|
data/lib/rconf/version.rb
CHANGED