Sha256: 5e82637bdace06617e86205c8243cc950d122d7eb5ea767ba40b90b69a8e1665
Contents?: true
Size: 689 Bytes
Versions: 36
Compression:
Stored size: 689 Bytes
Contents
module Padrino module Cli module Adapter class << self # Start for the given options a rackup handler def start(options) Padrino.run!(options.symbolize_keys) end # Method that stop (if exist) a running Padrino.application def stop(options) options.symbolize_keys! if File.exist?(options[:pid]) pid = File.read(options[:pid]).to_i print "=> Sending INT to process with pid #{pid} wait " Process.kill(2, pid) rescue nil else puts "=> #{options[:pid]} not found!" end end end # self end # Adapter end # Cli end # Padrino
Version data entries
36 entries across 36 versions & 3 rubygems