Class: OsCtld::ContainerControl::Commands::Wall::Frontend
- Includes:
- Utils::Wall::Frontend
- Defined in:
- lib/osctld/container_control/commands/wall.rb
Instance Attribute Summary
Attributes inherited from Frontend
Instance Method Summary collapse
Methods included from Utils::Wall::Frontend
Methods inherited from Frontend
#exec_runner, #fork_runner, #initialize
Constructor Details
This class inherits a constructor from OsCtld::ContainerControl::Frontend
Instance Method Details
#execute(message:, banner: true) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/osctld/container_control/commands/wall.rb', line 14 def execute(message:, banner: true) unless ct.running? raise ContainerControl::Error, 'container not running' end ret = exec_runner(args: [(, banner:)]) ret.ok? || ret end |