Permalink
Browse files

Use fail instead of die, because there is no die in Ruby

  • Loading branch information...
1 parent 31c521b commit 5987063d9835b4c076a449e2e32038443dba6a3b @sodabrew sodabrew committed Mar 9, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 bin/rq-install
View
@@ -27,31 +27,31 @@ def create_queues
'num_workers' => '1',
'exec_prefix' => '',
}
- puts "Created queue #{queue.inspect}" if RQ::Queue.create(queue) or die "Failed to create queue: #{queue}"
+ puts "Created queue #{queue.inspect}" if RQ::Queue.create(queue) or fail "Failed to create queue: #{queue}"
queue = {
'name' => 'webhook',
'script' => './code/webhook_script.rb',
'num_workers' => '1',
'exec_prefix' => '',
}
- puts "Created queue #{queue.inspect}" if RQ::Queue.create(queue) or die "Failed to create queue: #{queue}"
+ puts "Created queue #{queue.inspect}" if RQ::Queue.create(queue) or fail "Failed to create queue: #{queue}"
queue = {
'name' => 'cleaner',
'script' => './code/cleaner_script.rb',
'num_workers' => '1',
'exec_prefix' => '',
}
- puts "Created queue #{queue.inspect}" if RQ::Queue.create(queue) or die "Failed to create queue: #{queue}"
+ puts "Created queue #{queue.inspect}" if RQ::Queue.create(queue) or fail "Failed to create queue: #{queue}"
queue = {
'name' => 'rq_router',
'script' => './code/rq_router_script.rb',
'num_workers' => '1',
'exec_prefix' => '',
}
- puts "Created queue #{queue.inspect}" if RQ::Queue.create(queue) or die "Failed to create queue: #{queue}"
+ puts "Created queue #{queue.inspect}" if RQ::Queue.create(queue) or fail "Failed to create queue: #{queue}"
true
end

0 comments on commit 5987063

Please sign in to comment.