Start for the given options a rackup handler
# File lib/padrino-core/cli/adapter.rb, line 6 def start(options) Padrino.run!(options.symbolize_keys) end
Method that stop (if exist) a running Padrino.application
# File lib/padrino-core/cli/adapter.rb, line 11 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
Generated with the Darkfish Rdoc Generator 2.