capistrano-paratrooper-chef 0.0.1 → 0.0.2
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.
|
@@ -20,7 +20,7 @@ Capistrano::Configuration.instance.load do
|
|
|
20
20
|
required_version = fetch(:chef_version).inspect
|
|
21
21
|
installed = capture("gem list -i chef -v #{required_version} || true").strip
|
|
22
22
|
|
|
23
|
-
if installed
|
|
23
|
+
if installed != "true"
|
|
24
24
|
if fetch(:rvm_type, nil) == :user or fetch(:rbenv_path, nil)
|
|
25
25
|
run "gem uninstall -xaI chef || true"
|
|
26
26
|
run "gem install chef -v #{fetch(:chef_version).inspect} --quiet --no-ri --no-rdoc"
|