Class: OsCtld::ContainerControl::Commands::Wall::Runner

Inherits:
Runner
  • Object
show all
Includes:
Utils::Wall::Runner
Defined in:
lib/osctld/container_control/commands/wall.rb

Instance Attribute Summary

Attributes inherited from Runner

#ctid, #log_file, #lxc_home, #pool, #stderr, #stdin, #stdout, #user_home

Instance Method Summary collapse

Methods included from Utils::Wall::Runner

#ct_wall, #write_to_tty

Methods inherited from Runner

#error, #initialize, #lxc_ct, #ok, #setup_exec_env, #setup_exec_run_env, #system_path

Constructor Details

This class inherits a constructor from OsCtld::ContainerControl::Runner

Instance Method Details

#execute(message) ⇒ Object



27
28
29
30
31
32
33
34
35
# File 'lib/osctld/container_control/commands/wall.rb', line 27

def execute(message)
  st = ct_wall(message)

  if st.exitstatus == 0
    ok
  else
    error("failed to send message: exit status #{$?.exitstatus}")
  end
end