### Home Classes Methods

### In Files

- lib/phusion_passenger/standalone/config_file.rb

### Parent

Object

### Namespace

- CLASS PhusionPassenger::Standalone::ConfigFile::DisallowedContextError

### Methods

- ::new
- #address
- #analytics
- #daemonize
- #debugger
- #domain_name
- #domain_names
- #env
- #environment
- #max_pool_size
- #min_instances
- #nginx_bin
- #port
- #rack_env
- #rails_env

### Class/Module Index

Quicksearch

- PhusionPassenger
- PhusionPassenger::AbstractInstaller
- PhusionPassenger::AbstractInstaller::Abort
- PhusionPassenger::AbstractInstaller::CommandError
- PhusionPassenger::AdminTools
- PhusionPassenger::AdminTools::MemoryStats
- PhusionPassenger::AdminTools::MemoryStats::Process
- PhusionPassenger::AdminTools::ServerInstance
- PhusionPassenger::AdminTools::ServerInstance::CorruptedDirectoryError
- PhusionPassenger::AdminTools::ServerInstance::GenerationsAbsentError
- PhusionPassenger::AdminTools::ServerInstance::Group
- PhusionPassenger::AdminTools::ServerInstance::Process
- PhusionPassenger::AdminTools::ServerInstance::RoleDeniedError
- PhusionPassenger::AdminTools::ServerInstance::StaleDirectoryError
- PhusionPassenger::AdminTools::ServerInstance::Stats
- PhusionPassenger::AdminTools::ServerInstance::UnsupportedGenerationStructureVersionError
- PhusionPassenger::AnalyticsLogger
- PhusionPassenger::AnalyticsLogger::Connection
- PhusionPassenger::AnalyticsLogger::Lock
- PhusionPassenger::AnalyticsLogger::Log
- PhusionPassenger::ClassicRails
- PhusionPassenger::ClassicRails::CGIFixed
- PhusionPassenger::ClassicRails::ThreadHandlerExtension
- PhusionPassenger::ConsoleTextTemplate
- PhusionPassenger::DebugLogging
- PhusionPassenger::LoaderSharedHelpers
- PhusionPassenger::MessageChannel
- PhusionPassenger::MessageChannel::InvalidHashError
- PhusionPassenger::MessageClient
- PhusionPassenger::NativeSupportLoader
- PhusionPassenger::Packaging
- PhusionPassenger::PlatformInfo
- PhusionPassenger::PlatformInfo::Depcheck
- PhusionPassenger::PlatformInfo::Depcheck::ConsoleRunner
- PhusionPassenger::PlatformInfo::Depcheck::Dependency
- PhusionPassenger::PlatformInfo::RuntimeError
- PhusionPassenger::Plugin
- PhusionPassenger::PreloaderSharedHelpers
- PhusionPassenger::Rack
- PhusionPassenger::Rack::OutOfBandGc
- PhusionPassenger::Rack::ThreadHandlerExtension
- PhusionPassenger::Rails3Extensions
- PhusionPassenger::Rails3Extensions::AnalyticsLogging
- PhusionPassenger::Rails3Extensions::AnalyticsLogging::ACExtension
- PhusionPassenger::Rails3Extensions::AnalyticsLogging::ASBenchmarkableExtension
- PhusionPassenger::Rails3Extensions::AnalyticsLogging::ExceptionLogger
- PhusionPassenger::RequestHandler
- PhusionPassenger::RequestHandler::ThreadHandler
- PhusionPassenger::RequestHandler::ThreadHandler::Interrupted
- PhusionPassenger::SharedConstants
- PhusionPassenger::Standalone
- PhusionPassenger::Standalone::AppFinder
- PhusionPassenger::Standalone::Command
- PhusionPassenger::Standalone::ConfigFile
- PhusionPassenger::Standalone::ConfigFile::DisallowedContextError
- PhusionPassenger::Standalone::HelpCommand
- PhusionPassenger::Standalone::Main
- PhusionPassenger::Standalone::PackageRuntimeCommand
- PhusionPassenger::Standalone::RuntimeInstaller
- PhusionPassenger::Standalone::StartCommand
- PhusionPassenger::Standalone::StatusCommand
- PhusionPassenger::Standalone::StopCommand
- PhusionPassenger::Standalone::Utils
- PhusionPassenger::Standalone::VersionCommand
- PhusionPassenger::Utils
- PhusionPassenger::Utils::AnsiColors
- PhusionPassenger::Utils::FileSystemWatcher
- PhusionPassenger::Utils::FileSystemWatcher::DirInfo
- PhusionPassenger::Utils::FileSystemWatcher::FileInfo
- PhusionPassenger::Utils::HostsFileParser
- PhusionPassenger::Utils::TeeInput
- PhusionPassenger::Utils::TmpIO
- PhusionPassenger::Utils::UnseekableSocket
- CommonLibraryBuilder
- Exception
- GC
- IO
- Object
- Signal

No matching classes.

# PhusionPassenger::Standalone::ConfigFile

### Attributes

options[R]

### Public Class Methods

new(context, filename) click to toggle source

    # File lib/phusion_passenger/standalone/config_file.rb, line 42
    def initialize(context, filename)
            @options  = {}
            @context  = context
            @filename = filename
            File.open(filename, 'r') do |f|
                    f.flock(File::LOCK_SH)
                    instance_eval(f.read, filename)
            end
    end

### Public Instance Methods

address(addr) click to toggle source

    # File lib/phusion_passenger/standalone/config_file.rb, line 52
    def address(addr)
            allowed_contexts(:port, :global_config)
            @options[:address] = addr
            @options[:tcp_explicitly_given] = true
    end

analytics(value) click to toggle source

    # File lib/phusion_passenger/standalone/config_file.rb, line 101
    def analytics(value)
            @options[:analytics] = value
    end

daemonize(on) click to toggle source

    # File lib/phusion_passenger/standalone/config_file.rb, line 81
    def daemonize(on)
            allowed_contexts(:daemonize, :global_config)
            @options[:daemonize] = on
    end

debugger(value) click to toggle source

    # File lib/phusion_passenger/standalone/config_file.rb, line 105
    def debugger(value)
            @options[:debugger] = value
    end

domain_name(name) click to toggle source

    # File lib/phusion_passenger/standalone/config_file.rb, line 91
    def domain_name(name)
            allowed_contexts(:domain_name, :local_config)
            @options[:server_names] = [name]
    end

domain_names(*names) click to toggle source

    # File lib/phusion_passenger/standalone/config_file.rb, line 96
    def domain_names(*names)
            allowed_contexts(:domain_names, :local_config)
            @options[:server_names] = names.to_a.flatten
    end

env(name) click to toggle source
Alias for: environment
environment(name) click to toggle source

    # File lib/phusion_passenger/standalone/config_file.rb, line 64
    def environment(name)
            @options[:env] = name
    end

Also aliased as: env, rails_env, rack_env
max_pool_size(number) click to toggle source

    # File lib/phusion_passenger/standalone/config_file.rb, line 72
    def max_pool_size(number)
            allowed_contexts(:max_pool_size, :global_config)
            @options[:max_pool_size] = number
    end

min_instances(number) click to toggle source

    # File lib/phusion_passenger/standalone/config_file.rb, line 77
    def min_instances(number)
            @options[:min_instances] = number
    end

nginx_bin(filename) click to toggle source

    # File lib/phusion_passenger/standalone/config_file.rb, line 86
    def nginx_bin(filename)
            allowed_contexts(:nginx_bin, :global_config)
            @options[:nginx_bin] = filename
    end

port(number) click to toggle source

    # File lib/phusion_passenger/standalone/config_file.rb, line 58
    def port(number)
            allowed_contexts(:port, :global_config)
            @options[:port] = number
            @options[:tcp_explicitly_given] = true
    end

rack_env(name) click to toggle source
Alias for: environment
rails_env(name) click to toggle source
Alias for: environment

[Validate]

Generated with the Darkfish Rdoc Generator 2.