Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 5987063d9835b4c076a449e2e32038443dba6a3b 1 parent 31c521b
@sodabrew sodabrew authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 bin/rq-install
View
8 bin/rq-install
@@ -27,7 +27,7 @@ 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',
@@ -35,7 +35,7 @@ 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' => 'cleaner',
@@ -43,7 +43,7 @@ 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' => 'rq_router',
@@ -51,7 +51,7 @@ 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}"
true
end
Please sign in to comment.
Something went wrong with that request. Please try again.