Class: Creeper::BeanstalkConnection
- Inherits:
-
Object
- Object
- Creeper::BeanstalkConnection
- Defined in:
- lib/creeper/beanstalk_connection.rb
Class Method Summary collapse
Class Method Details
.client_options ⇒ Object
31 32 33 |
# File 'lib/creeper/beanstalk_connection.rb', line 31 def self. @client_options ||= {} end |
.create(options = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/creeper/beanstalk_connection.rb', line 5 def self.create(={}) .merge!() url = [:url] || ENV['BEANSTALK_URL'] || 'beanstalk://127.0.0.1:11300/' default = [:default] tubes = [:tubes] || Creeper.job_descriptions.keys build_client(url, default, tubes) end |