Sha256: a4107d19e52cd2a338aac63c5f7df52b94ea0997d30418c087e17372ca024267

Contents?: true

Size: 747 Bytes

Versions: 6

Compression:

Stored size: 747 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()
      yield(config)
      SimpleWorker.service = Service.new(config.access_key, config.secret_key, :config=>config)
    end

    def config
      @config ||= Config.new
    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

6 entries across 6 versions & 1 rubygems

Version Path
simple_worker-0.5.8 lib/simple_worker.rb
simple_worker-0.5.6 lib/simple_worker.rb
simple_worker-0.5.5 lib/simple_worker.rb
simple_worker-0.5.4 lib/simple_worker.rb
simple_worker-0.5.2 lib/simple_worker.rb
simple_worker-0.5.1 lib/simple_worker.rb