Commit 3548cd1a by Andrew Babichev

Removed trailing spaces

parent 92de4036
...@@ -97,12 +97,12 @@ namespace :sneakers do ...@@ -97,12 +97,12 @@ namespace :sneakers do
raise "[ set :workers, ['worker1', 'workerN'] ] not configured properly, please configure the workers you wish to use" if fetch(:sneakers_workers).nil? or fetch(:sneakers_workers) == false or !fetch(:sneakers_workers).kind_of? Array raise "[ set :workers, ['worker1', 'workerN'] ] not configured properly, please configure the workers you wish to use" if fetch(:sneakers_workers).nil? or fetch(:sneakers_workers) == false or !fetch(:sneakers_workers).kind_of? Array
workers = fetch(:sneakers_workers).compact.join(',') workers = fetch(:sneakers_workers).compact.join(',')
#run "cmd", env: { 'WORKERS' => workers } #export this to environmental variable #run "cmd", env: { 'WORKERS' => workers } #export this to environmental variable
info "Starting the sneakers processes" info "Starting the sneakers processes"
#workers.each do |worker| #workers.each do |worker|
with rails_env: fetch(:sneakers_env), workers: workers do with rails_env: fetch(:sneakers_env), workers: workers do
rake 'sneakers:run' rake 'sneakers:run'
end end
#execute :bundle, :exec, :sneakers, args.compact.join(' ') #execute :bundle, :exec, :sneakers, args.compact.join(' ')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment