CrystaLXD::Container::Exec
Inherits JSON::Serializable < Struct < Value < Object
Exec options (https://github.com/lxc/lxd/blob/master/doc/rest-api.md#10containersnameexec).
Constructors
Instance methods
Command and arguments.
Command and arguments.
Current working directory (optional).
Current working directory (optional).
Optional extra environment variables to set.
Optional extra environment variables to set.
Group to run the command as (optional).
Group to run the command as (optional).
Initial height of the terminal (optional).
Initial height of the terminal (optional).
Registers a proc operation to execute on stderr outputs.
exec = CrystaLXD::Container::Exec.new
exec.on_stderr do |bytes|
STDERR.write bytes
end
Registers a proc operation to execute on stdout outputs.
exec = CrystaLXD::Container::Exec.new
exec.on_stdout do |bytes|
STDOUT.write bytes
end
User to run the command as (optional).
User to run the command as (optional).
Initial width of the terminal (optional).
Initial width of the terminal (optional).