rconf 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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