Sha256: cf763593897c0b0381c050371615d081a909f55b09acc5f09d8bed79e2ad79c8

Contents?: true

Size: 1.22 KB

Versions: 2

Compression:

Stored size: 1.22 KB

Contents

# frozen_string_literal: true

require 'active_support/core_ext/object/blank'
require 'active_support/core_ext/object/try'
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/missing_worker_arguments_error'
require 'cloudtasker/max_task_size_exceeded_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

2 entries across 2 versions & 1 rubygems

Version Path
cloudtasker-0.13.2 lib/cloudtasker.rb
cloudtasker-0.13.1 lib/cloudtasker.rb