Module: ScriptCore

Extended by:
Forwardable
Defined in:
lib/script_core.rb,
lib/script_core/stat.rb,
lib/script_core/engine.rb,
lib/script_core/result.rb,
lib/script_core/runner.rb,
lib/script_core/railtie.rb,
lib/script_core/spawner.rb,
lib/script_core/version.rb,
lib/script_core/protocol.rb,
lib/script_core/executable.rb,
lib/script_core/engine_error.rb,
lib/script_core/service_channel.rb,
lib/script_core/service_process.rb,
lib/script_core/message_processor.rb

Defined Under Namespace

Modules: Protocol Classes: Engine, EngineAbnormalExitError, EngineIllegalSyscallError, EngineRuntimeError, EngineSignaledError, EngineSyntaxError, EngineTimeQuotaError, EngineUnknownExtError, EngineUnknownTypeError, Executable, ExecutableNotFound, MessageProcessor, Railtie, Result, Runner, ServiceChannel, ServiceProcess, Spawner, Stat

Constant Summary collapse

DEFAULT_BIN_PATH =
Pathname.new(__dir__).parent.join("bin")
DEFAULT_EXECUTABLE_PATH =
DEFAULT_BIN_PATH.join("enterprise_script_service")
VERSION =
"0.3.2"
EngineError =

one to rule them all

Class.new(StandardError)
EngineScriptError =

abstract super types

Class.new(EngineError)
EngineQuotaError =
Class.new(EngineError)
EngineInternalError =
Class.new(EngineError)
EngineMemoryQuotaError =

Quota Errors

Class.new(EngineQuotaError)
EngineInstructionQuotaError =
Class.new(EngineQuotaError)
EngineStackExhaustedError =

unused?

Class.new(EngineQuotaError)
EngineTypeError =

Internal Errors

Class.new(EngineInternalError)
UnknownTypeError =
Class.new(EngineInternalError)
EngineTruncationError =
Class.new(EngineInternalError)
ArithmeticOverflowError =
Class.new(EngineInternalError)

Class Method Summary collapse

Class Method Details

.default_executableObject



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

def default_executable
  @default_executable ||= ScriptCore::Executable.new DEFAULT_EXECUTABLE_PATH
end