Class: OsCtld::ContainerControl::Commands::VethName::Frontend
- Defined in:
- lib/osctld/container_control/commands/veth_name.rb
Instance Attribute Summary
Attributes inherited from Frontend
Instance Method Summary collapse
Methods inherited from Frontend
#exec_runner, #fork_runner, #initialize
Constructor Details
This class inherits a constructor from OsCtld::ContainerControl::Frontend
Instance Method Details
#execute(index) ⇒ String
11 12 13 14 |
# File 'lib/osctld/container_control/commands/veth_name.rb', line 11 def execute(index) ret = fork_runner(args: [index]) ret.ok? ? ret.data : ret end |