module Sponges
Constants
- SIGNALS
- STOP_SIGNALS
- VERSION
Public Instance Methods
configure(&block)
click to toggle source
# File lib/sponges.rb, line 16 def configure(&block) Sponges::Configuration.configure &block end
env()
click to toggle source
# File lib/sponges.rb, line 31 def env Sponges::Configuration.env end
logger()
click to toggle source
# File lib/sponges.rb, line 26 def logger return @logger if @logger @logger = Sponges::Configuration.logger || Logger.new(STDOUT) end
start(worker_name, options = {}, argv = ARGV, &block)
click to toggle source
# File lib/sponges.rb, line 20 def start(worker_name, options = {}, argv = ARGV, &block) Sponges::Configuration.worker_name = worker_name Sponges::Configuration.worker = block Sponges::Cli.start(argv) end