Module: Mumukit

Defined in:
lib/mumukit.rb,
lib/mumukit/env.rb,
lib/mumukit/server.rb,
lib/mumukit/version.rb,
lib/mumukit/defaults.rb,
lib/mumukit/templates.rb,
lib/mumukit/error_pattern.rb,
lib/mumukit/with_tempfile.rb,
lib/mumukit/compilation_error.rb,
lib/mumukit/with_command_line.rb,
lib/mumukit/templates/try_hook.rb,
lib/mumukit/templates/file_hook.rb,
lib/mumukit/isolated_environment.rb,
lib/mumukit/request_validation_error.rb,
lib/mumukit/templates/multi_file_hook.rb,
lib/mumukit/templates/with_code_smells.rb,
lib/mumukit/templates/expectations_hook.rb,
lib/mumukit/templates/mulang_expectations_hook.rb,
lib/mumukit/templates/with_mashup_file_content.rb,
lib/mumukit/templates/with_embedded_environment.rb,
lib/mumukit/templates/with_isolated_environment.rb,
lib/mumukit/templates/multi_file_precompile_hook.rb

Defined Under Namespace

Modules: Defaults, Env, Metatest, RuntimeInfo, RuntimeShortcuts, Server, Templates, WithCommandLine, WithContentType, WithTempfile Classes: CompilationError, Cookie, ErrorPattern, Explainer, Hook, IsolatedEnvironment, RequestValidationError, Runner, Runtime

Constant Summary collapse

VERSION =
'2.45.0'

Class Method Summary collapse

Class Method Details

.configure_defaults(&block) ⇒ Object



33
34
35
# File 'lib/mumukit.rb', line 33

def self.configure_defaults(&block)
  Mumukit::Runner.configure_defaults(&block)
end

.current_runnerObject



16
17
18
19
# File 'lib/mumukit.rb', line 16

def self.current_runner
  raise "no runner selected. Did you forget to set current runner's name?" unless @current_runner
  @current_runner
end

.current_runner=(runner) ⇒ Object



12
13
14
# File 'lib/mumukit.rb', line 12

def self.current_runner=(runner)
  @current_runner = runner
end

.runner_nameObject



25
26
27
# File 'lib/mumukit.rb', line 25

def self.runner_name
  current_runner.name
end

.runner_name=(name) ⇒ Object



21
22
23
# File 'lib/mumukit.rb', line 21

def self.runner_name=(name)
  self.current_runner = Mumukit::Runner.new(name)
end

.runner_urlObject



29
30
31
# File 'lib/mumukit.rb', line 29

def self.runner_url
  Rack::Request.new(Mumukit::Env.env).base_url
end