summaryrefslogtreecommitdiff
path: root/lib/chef/provider/deploy.rb
diff options
context:
space:
mode:
authorNitz <nitz.raz@gmail.com>2015-03-31 18:12:35 +0300
committerNitz <nitz.raz@gmail.com>2015-08-18 16:27:43 +0300
commitc93f286bb7c187522a1294ea8e52a5aa04273162 (patch)
tree305580570d095556404ee66b12041b0ffbd1a3e0 /lib/chef/provider/deploy.rb
parentbacb2ff93ccc2e14a0b721988e241a1d07f70795 (diff)
downloadchef-c93f286bb7c187522a1294ea8e52a5aa04273162.tar.gz
Migrated deploy resource to use shell_out instead of run_command
Should help with troubleshooting failed migrations
Diffstat (limited to 'lib/chef/provider/deploy.rb')
-rw-r--r--lib/chef/provider/deploy.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/deploy.rb b/lib/chef/provider/deploy.rb
index 6d9b7f4397..77a0410593 100644
--- a/lib/chef/provider/deploy.rb
+++ b/lib/chef/provider/deploy.rb
@@ -201,7 +201,7 @@ class Chef
converge_by("execute migration command #{@new_resource.migration_command}") do
Chef::Log.info "#{@new_resource} migrating #{@new_resource.user} with environment #{env_info}"
- run_command(run_options(:command => @new_resource.migration_command, :cwd=>release_path, :log_level => :info))
+ shell_out!(@new_resource.migration_command,run_options(:cwd=>release_path, :log_level => :info))
end
end
end
@@ -221,7 +221,7 @@ class Chef
else
converge_by("restart app using command #{@new_resource.restart_command}") do
Chef::Log.info("#{@new_resource} restarting app")
- run_command(run_options(:command => @new_resource.restart_command, :cwd => @new_resource.current_path))
+ shell_out!(@new_resource.restart_command,run_options(:cwd=>@new_resource.current_path))
end
end
end