Skip to content

Commit

Permalink
alias method (die,exit)
Browse files Browse the repository at this point in the history
  • Loading branch information
seuros committed Nov 14, 2014
1 parent c5d9d3e commit 7d60147
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/sidekiq/cli.rb
@@ -1,3 +1,4 @@
# encoding: utf-8
$stdout.sync = true

require 'yaml'
Expand Down Expand Up @@ -195,9 +196,8 @@ def set_environment(cli_env)
@environment = cli_env || ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
end

def die(code)
exit(code)
end
alias_method :die, :exit
alias_method :, :exit

def setup_options(args)
opts = parse_options(args)
Expand Down

0 comments on commit 7d60147

Please sign in to comment.