Exception: Nginxtra::Error::InvalidCompilationOption
- Inherits:
-
InvalidConfig
- Object
- StandardError
- Base
- InvalidConfig
- Nginxtra::Error::InvalidCompilationOption
- Defined in:
- lib/nginxtra/error.rb
Overview
Subclass of InvalidConfig that indicates an option was provided that is not allowed.
Constant Summary collapse
- MESSAGES =
{ "prefix" => "The --prefix compile option is not allowed with nginxtra. It is reserved so nginxtra can control where nginx is compiled and run from.", "sbin-path" => "The --sbin-path compile option is not allowed with nginxtra. It is reserved so nginxtra can control what binary is used to run nginx.", "conf-path" => "The --conf-path compile option is not allowed with nginxtra. It is reserved so nginxtra can control the configuration entirely via #{Nginxtra::Config::FILENAME}.", "pid-path" => "The --pid-path compile option is not allowed with nginxtra. It is reserved so nginxtra can control where the pid file is created." }.freeze
Instance Method Summary collapse
-
#initialize(parameter) ⇒ InvalidCompilationOption
constructor
A new instance of InvalidCompilationOption.
Methods inherited from Base
Constructor Details
#initialize(parameter) ⇒ InvalidCompilationOption
Returns a new instance of InvalidCompilationOption.
59 60 61 |
# File 'lib/nginxtra/error.rb', line 59 def initialize(parameter) super("Invalid compilation option --#{parameter}", header: "Invalid compilation option --#{parameter}", message: MESSAGES[parameter]) end |