Sha256: 3a0e00f7e31b1adb26d7ee3b35b03fbc6cb65e013abf991f34f2b12f811f1eeb

Contents?: true

Size: 734 Bytes

Versions: 1

Compression:

Stored size: 734 Bytes

Contents

require 'appoxy_api'
require 'active_support/core_ext'
require_relative 'simple_worker/service'
require_relative 'simple_worker/base'
require_relative 'simple_worker/config'
require_relative 'simple_worker/used_in_worker'


module SimpleWorker

  class << self
    attr_accessor :config,
                  :service

    def configure()
      SimpleWorker.config ||= Config.new
      yield(config)
      SimpleWorker.service = Service.new(config.access_key, config.secret_key, :config=>config)
    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.3.20 lib/simple_worker.rb