Module: Ask::Sandbox
- Defined in:
- lib/ask/sandbox/base.rb,
lib/ask/sandbox/local.rb,
lib/ask/sandbox/docker.rb,
lib/ask/sandbox/daytona.rb,
lib/ask/sandbox/version.rb,
lib/ask-sandbox-providers.rb,
lib/ask/sandbox/cloudflare.rb
Defined Under Namespace
Classes: Base, Cloudflare, ConfigurationError, Daytona, Docker, Error, ExecutionError, Local, ProviderUnavailable, Result
Constant Summary collapse
- VERSION =
"0.1.3"
Class Method Summary collapse
-
.provider ⇒ Ask::Sandbox::Base
The currently configured sandbox provider.
-
.provider=(provider) ⇒ Object
Set the sandbox provider.
Class Method Details
.provider ⇒ Ask::Sandbox::Base
The currently configured sandbox provider. Defaults to Local (subprocess + rlimits).
17 18 19 |
# File 'lib/ask-sandbox-providers.rb', line 17 def provider @provider ||= Ask::Sandbox::Local.new end |
.provider=(provider) ⇒ Object
Set the sandbox provider.
26 27 28 29 30 31 |
# File 'lib/ask-sandbox-providers.rb', line 26 def provider=(provider) @provider = case provider when Symbol then resolve_provider(provider) else provider end end |