Class: OsCtld::ContainerControl::Commands::VethName::Runner

Inherits:
Runner
  • Object
show all
Defined in:
lib/osctld/container_control/commands/veth_name.rb

Instance Attribute Summary

Attributes inherited from Runner

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

Instance Method Summary collapse

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(index) ⇒ Object

Parameters:

  • index (Integer)

    interface index



19
20
21
# File 'lib/osctld/container_control/commands/veth_name.rb', line 19

def execute(index)
  ok(lxc_ct.running_config_item("lxc.net.#{index}.veth.pair"))
end