Class: WPAR::Wrapper::StopWpar
- Inherits:
-
Object
- Object
- WPAR::Wrapper::StopWpar
- Defined in:
- lib/wpars/wrapper/stopwpar.rb
Class Method Summary collapse
Class Method Details
.stop(options = {}) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/wpars/wrapper/stopwpar.rb', line 7 def self.stop( = {}) unless [:force].nil? cmd = "#{options[:command]} #{Constants::STOPWPAR} -F #{options[:name]}" else cmd = "#{options[:command]} #{Constants::STOPWPAR} #{options[:name]}" end puts "debug: #{cmd}" unless [:debug].nil? External.cmd(cmd: cmd, live_stream: [:live_stream]) end |