Class: Object

### Home Classes Methods

### In Files

- lib/puma/capistrano.rb
- lib/puma/rack/backports/uri/common_18.rb
- lib/puma/rack/backports/uri/common_192.rb

### Parent

BasicObject

### Methods

- #config_file
- #configuration
- #puma_env
- #puma_rails_additional_env
- #start_options
- #state_path

### Files

- Manifest.txt

### Class/Module Index

Quicksearch

- Puma
- Puma::App
- Puma::App::Status
- Puma::Binder
- Puma::CLI
- Puma::Client
- Puma::Cluster
- Puma::Cluster::Worker
- Puma::CommonLogger
- Puma::ConfigDefault
- Puma::Configuration
- Puma::Configuration::ConfigMiddleware
- Puma::ConnectionError
- Puma::Const
- Puma::ControlCLI
- Puma::DSL
- Puma::Delegation
- Puma::Events
- Puma::Events::DefaultFormatter
- Puma::Events::PidFormatter
- Puma::IOBuffer
- Puma::JRubyRestart
- Puma::JavaIOBuffer
- Puma::MiniSSL
- Puma::MiniSSL::Context
- Puma::MiniSSL::SSLError
- Puma::MiniSSL::Server
- Puma::MiniSSL::Socket
- Puma::NullIO
- Puma::Rack
- Puma::Rack::Builder
- Puma::Rack::Options
- Puma::Rack::URLMap
- Puma::Reactor
- Puma::Runner
- Puma::Server
- Puma::Single
- Puma::TCPLogger
- Puma::ThreadPool
- Puma::ThreadPool::AutoTrim
- Puma::ThreadPool::Reaper
- Puma::UnsupportedOption
- Puma::Util
- Puma::Util::HeaderHash
- OpenSSL
- OpenSSL::SSL
- OpenSSL::SSL::SSLServer
- Rack
- Rack::Handler
- Rack::Handler::Puma
- IO
- IO::WaitReadable
- Object
- Process
- String

No matching classes.

# Object

### Public Instance Methods

config_file() click to toggle source

    # File lib/puma/capistrano.rb, line 65
    def config_file
      @_config_file ||= begin
        file = fetch(:puma_config_file, nil)
        file = "./config/puma/#{puma_env}.rb" if !file && File.exists?("./config/puma/#{puma_env}.rb")
        file
      end
    end

configuration() click to toggle source

    # File lib/puma/capistrano.rb, line 86
    def configuration
      require 'puma'
      require 'puma/configuration'

      config = Puma::Configuration.new(:config_file => config_file)
      config.load
      config
    end

puma_env() click to toggle source

    # File lib/puma/capistrano.rb, line 73
    def puma_env
      fetch(:rack_env, fetch(:rails_env, 'production'))
    end

puma_rails_additional_env() click to toggle source

add additional env when start rails, such as : secret key, db username, db pwd or other what you want.

    # File lib/puma/capistrano.rb, line 78
    def puma_rails_additional_env
      fetch(:puma_rails_additional_env, '')
    end

start_options() click to toggle source

    # File lib/puma/capistrano.rb, line 57
    def start_options
      if config_file
        "-q -d -e #{puma_env} -C #{config_file}"
      else
        "-q -d -e #{puma_env} -b '#{puma_socket}' -S #{state_path} --control 'unix://#{shared_path}/sockets/pumactl.sock'"
      end
    end

state_path() click to toggle source

    # File lib/puma/capistrano.rb, line 82
    def state_path
      (config_file ? configuration.options[:state] : nil) || puma_state
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.