Sha256: 50c6d4b816a9d07ff0d61db28697976c12dd19dfb02d21773bc0f8057a8a5e67
Contents?: true
Size: 831 Bytes
Versions: 1
Compression:
Stored size: 831 Bytes
Contents
require_relative 'simple_worker/service' require_relative 'simple_worker/base' require_relative 'simple_worker/config' require_relative 'simple_worker/used_in_worker' module SimpleWorker @@logger = Logger.new(STDOUT) @@logger.level = Logger::INFO class << self attr_accessor :config, :service def configure() yield(config) SimpleWorker.service ||= Service.new(config.access_key, config.secret_key, :config=>config) end def config @config ||= Config.new end def logger @@logger end def api_version 3 end end end if defined?(Rails) # puts 'Rails=' + Rails.inspect # puts 'vers=' + Rails::VERSION::MAJOR.inspect if Rails::VERSION::MAJOR == 2 require_relative 'rails2_init.rb' else require_relative 'railtie' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_worker-0.6.2 | lib/simple_worker.rb |