Sha256: 40bd2c5827811a759c8781a13b247503cd09a7d5cdc9d20afb272e639220c661

Contents?: true

Size: 901 Bytes

Versions: 3

Compression:

Stored size: 901 Bytes

Contents

# frozen_string_literal: true
require 'active_support/all'
require 'flexirest'
require 'faraday_middleware'
require 'docker'
require 'zip'
Docker.validate_version!

require 'coursemology/polyglot'
require 'coursemology/polyglot/extensions'
require 'coursemology/evaluator/version'
require 'iso8601'

module Coursemology::Evaluator
  extend ActiveSupport::Autoload
  include ActiveSupport::Configurable

  autoload :Client
  autoload :DockerContainer
  autoload :CLI
  autoload :Models
  autoload :Services
  autoload :StringIO
  autoload :Utils

  eager_autoload do
    autoload :Logging
  end

  # The logger to use for the client.
  mattr_reader(:logger) { ActiveSupport::Logger.new(STDOUT) }

  # The cache to use for the client.
  mattr_reader(:cache) { ActiveSupport::Cache.lookup_store }

  def self.eager_load!
    super
    Coursemology::Polyglot.eager_load!
    Logging.eager_load!
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coursemology-evaluator-0.1.9 lib/coursemology/evaluator.rb
coursemology-evaluator-0.1.8 lib/coursemology/evaluator.rb
coursemology-evaluator-0.1.7 lib/coursemology/evaluator.rb