Method: HelperClasses::Platform#net_stop
- Defined in:
- lib/helper_classes/platform.rb
#net_stop(iface) ⇒ Object
124 125 126 127 128 129 130 131 |
# File 'lib/helper_classes/platform.rb', line 124 def net_stop(iface) c = "#{@services[:net_stop][@system]} #{iface}" if !System.run_bool(c) log_msg :Services, "Command #{c} failed" return false end return true end |