Sha256: 04e341e5db48ce74935f9126f7ac9975b237b6dcaadb67408deb84ebd7f9bbb9

Contents?: true

Size: 1.03 KB

Versions: 4

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

require 'active_support/core_ext/string/inflections'

require 'cloudtasker/version'
require 'cloudtasker/config'

require 'cloudtasker/authentication_error'
require 'cloudtasker/dead_worker_error'
require 'cloudtasker/invalid_worker_error'

require 'cloudtasker/middleware/chain'
require 'cloudtasker/authenticator'
require 'cloudtasker/cloud_task'
require 'cloudtasker/worker_logger'
require 'cloudtasker/worker_handler'
require 'cloudtasker/meta_store'
require 'cloudtasker/worker'

# Define and manage Cloud Task based workers
module Cloudtasker
  attr_writer :config

  #
  # Cloudtasker configurator.
  #
  def self.configure
    yield(config)
  end

  #
  # Return the Cloudtasker configuration.
  #
  # @return [Cloudtasker::Config] The Cloudtasker configuration.
  #
  def self.config
    @config ||= Config.new
  end

  #
  # Return the Cloudtasker logger.
  #
  # @return [Logger] The Cloudtasker logger.
  #
  def self.logger
    config.logger
  end
end

require 'cloudtasker/engine' if defined?(::Rails::Engine)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cloudtasker-0.9.0 lib/cloudtasker.rb
cloudtasker-0.8.2 lib/cloudtasker.rb
cloudtasker-0.8.1 lib/cloudtasker.rb
cloudtasker-0.8.0 lib/cloudtasker.rb