class MXC::Configuration
Global defaults for every sandbox. Change them with MXC.configure.
Attributes
Returns the default backend, :auto unless changed.
Returns the default timeout in seconds, or nil for none.
Public Class Methods
Source
# File lib/mxc/configuration.rb, line 13 def initialize @backend = :auto @timeout = nil end
Returns a Configuration with the built-in defaults.
Public Instance Methods
Source
# File lib/mxc/configuration.rb, line 19 def backend=(name) @backend = Sandbox.backend_name(name) end
Sets the default backend: :auto, :bubblewrap, or :seatbelt.
Source
# File lib/mxc/configuration.rb, line 24 def timeout=(seconds) @timeout = Sandbox.duration(seconds) end
Sets the default timeout in seconds. Accepts anything that responds to to_f, or nil for none.