Sha256: 939b93412bc9e8f321b7d89946949bce1e846c5562c9ff682808a151e72f8703
Contents?: true
Size: 656 Bytes
Versions: 16
Compression:
Stored size: 656 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 end end end
Version data entries
16 entries across 16 versions & 2 rubygems