Permalink
Browse files

Merge pull request #916 from rfroetscher/no_wait

Allow daemon-options to be passed through
  • Loading branch information...
2 parents 1e67917 + f212101 commit e3772d4f0c8470d0fcba00c86ca3bc4f5e876830 @albus522 albus522 committed Jun 6, 2016
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/delayed/command.rb
@@ -77,8 +77,11 @@ def initialize(args) # rubocop:disable MethodLength
opt.on('--exit-on-complete', 'Exit when no more jobs are available to run. This will exit if all jobs are scheduled to run in the future.') do
@options[:exit_on_complete] = true
end
+ opt.on('--daemon-options a, b, c', Array, 'options to be passed through to daemons gem') do |daemon_options|
+ @daemon_options = daemon_options
+ end
end
- @args = opts.parse!(args)
+ @args = opts.parse!(args) + (@daemon_options || [])
end
def daemonize # rubocop:disable PerceivedComplexity

0 comments on commit e3772d4

Please sign in to comment.