diff options
author | Thom May <thom@may.lt> | 2015-09-02 13:38:24 +0100 |
---|---|---|
committer | Thom May <thom@may.lt> | 2015-09-02 13:38:24 +0100 |
commit | e42eaec8f13babcc5553db631ee9cdadade89294 (patch) | |
tree | bf2262d302cc5c97612a93ac1c3ad2df924e1e18 /lib | |
parent | 3a410e9d10ad673f4aafa46ee46f2c8f8d66f7ca (diff) | |
parent | c93f286bb7c187522a1294ea8e52a5aa04273162 (diff) | |
download | chef-e42eaec8f13babcc5553db631ee9cdadade89294.tar.gz |
Merge pull request #3172 from BackSlasher/deploy-shell-out
Migrated deploy resource to use shell_out instead of run_command
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/provider/deploy.rb | 4 |
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 |