lib/coursemology/evaluator.rb in coursemology-evaluator-0.0.0 vs lib/coursemology/evaluator.rb in coursemology-evaluator-0.1.0

- old
+ new

@@ -1,7 +1,35 @@ -require "coursemology/evaluator/version" +require 'active_support/all' +require 'flexirest' +require 'faraday_middleware' +require 'docker' +require 'zip' +Docker.validate_version! -module Coursemology - module Evaluator - # Your code goes here... +require 'coursemology/polyglot' +require 'coursemology/polyglot/extensions' +require 'coursemology/evaluator/version' + +module Coursemology::Evaluator + extend ActiveSupport::Autoload + + 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) } + + def self.eager_load! + super + Coursemology::Polyglot.eager_load! + Logging.eager_load! end end