lib/guard/delayed.rb in guard-delayed-0.0.7 vs lib/guard/delayed.rb in guard-delayed-0.0.8
- old
+ new
@@ -22,18 +22,18 @@
def start
system('script/delayed_job', 'stop')
UI.info "Starting up delayed_job..."
args = "start"
- args << "--environment=#{options[:environment]} " if options[:environment]
- args << "--min-priority #{options[:min_priority]} " if options[:min_priority]
- args << "--max-priority #{options[:max_priority]} " if options[:max_priority]
- args << "--number_of_workers=#{options[:number_of_workers]} " if options[:number_of_workers]
- args << "--pid-dir=#{options[:pid_dir]} " if options[:pid_dir]
- args << "--identifier=#{options[:identifier]} " if options[:identifier]
- args << "--monitor " if options[:monitor]
- args << "--sleep-delay #{options[:sleep_delay]} " if options[:sleep_delay]
- args << "--prefix #{options[:prefix]} " if options[:prefix]
+ args << "--environment=#{@options[:environment]} " if @options[:environment]
+ args << "--min-priority #{@options[:min_priority]} " if @options[:min_priority]
+ args << "--max-priority #{@options[:max_priority]} " if @options[:max_priority]
+ args << "--number_of_workers=#{@options[:number_of_workers]} " if @options[:number_of_workers]
+ args << "--pid-dir=#{@options[:pid_dir]} " if @options[:pid_dir]
+ args << "--identifier=#{@options[:identifier]} " if @options[:identifier]
+ args << "--monitor " if @options[:monitor]
+ args << "--sleep-delay #{@options[:sleep_delay]} " if @options[:sleep_delay]
+ args << "--prefix #{@options[:prefix]} " if @options[:prefix]
system('script/delayed_job', 'start')
end
# Called on Ctrl-C signal (when Guard quits)
def stop