lib/capistrano/tasks/foreman.rake in capistrano-foreman-systemd-0.0.4 vs lib/capistrano/tasks/foreman.rake in capistrano-foreman-systemd-0.0.5

- old
+ new

@@ -50,10 +50,10 @@ options[:concurrency] = fetch(:foreman_concurrency) if fetch(:foreman_concurrency) options[:concurrency] = server.properties.foreman_concurrency if server.properties.foreman_concurrency options[:port] = fetch(:foreman_port) if fetch(:foreman_port) options[:user] = fetch(:foreman_user) if fetch(:foreman_user) - execute :foreman, 'export', fetch(:foreman_export_format), fetch(:foreman_export_path), + sudo :foreman, 'export', fetch(:foreman_export_format), fetch(:foreman_export_path), options.map{ |k, v| "--#{k}='#{v}'" }, fetch(:foreman_flags) end end end