class WPAR::Wrapper::StopWpar

Public Class Methods

stop(options = {}) click to toggle source
# File lib/wpars/wrapper/stopwpar.rb, line 7
def self.stop(options = {})
  unless options[:force].nil?
    cmd = "#{options[:command]} #{Constants::STOPWPAR} -F #{options[:name]}"
  else
    cmd = "#{options[:command]} #{Constants::STOPWPAR} #{options[:name]}"
  end

  puts "debug: #{cmd}" unless options[:debug].nil?
  External.cmd(cmd: cmd, live_stream: options[:live_stream])
end