Module: Padrino::Cli::Adapter

### Home Classes Methods

### In Files

- lib/padrino-core/cli/adapter.rb

### Methods

- ::start
- ::stop

### Files

- README.rdoc

### Class/Module Index

Quicksearch

- Padrino
- Padrino::Application
- Padrino::ApplicationLoadError
- Padrino::ApplicationSetupError
- Padrino::Cli
- Padrino::Cli::Adapter
- Padrino::Cli::Base
- Padrino::Erubis
- Padrino::Erubis::SafeBufferEnhancer
- Padrino::Erubis::SafeBufferTemplate
- Padrino::Erubis::Template
- Padrino::Filter
- Padrino::Flash
- Padrino::Flash::Helpers
- Padrino::Flash::Storage
- Padrino::Logger
- Padrino::Logger::Colorize
- Padrino::Logger::Extensions
- Padrino::Logger::Rack
- Padrino::Module
- Padrino::Mounter
- Padrino::Mounter::MounterException
- Padrino::Reloader
- Padrino::Reloader::Rack
- Padrino::Rendering
- Padrino::Rendering::ClassMethods
- Padrino::Rendering::InstanceMethods
- Padrino::Rendering::SafeTemplate
- Padrino::Rendering::TemplateNotFound
- Padrino::Router
- Padrino::Routing
- Padrino::Routing::ClassMethods
- Padrino::Routing::InstanceMethods
- Padrino::Routing::Parent
- Padrino::Routing::UnrecognizedException
- Padrino::Server
- Padrino::ShowExceptions
- Padrino::Tasks
- Padrino::Utils
- HttpRouter
- HttpRouter::Node
- HttpRouter::Node::Path
- HttpRouter::Request
- HttpRouter::Route
- Haml
- Haml::Helpers
- Haml::Util
- Sinatra
- Sinatra::Request
- Slim
- Slim::Template
- Tilt
- Tilt::HamlTemplate
- FileSet
- Kernel
- Module
- Object
- ObjectSpace
- PadrinoTasks
- String
- SupportLite

No matching classes.

# Padrino::Cli::Adapter

### Public Class Methods

start(options) click to toggle source

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

stop(options) click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.