Class: Brut::CLI::Commands::RaiseError
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Brut::CLI::Commands::RaiseError
- Defined in:
- lib/brut/cli/commands/raise_error.rb
Instance Attribute Summary collapse
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
Attributes inherited from BaseCommand
Instance Method Summary collapse
-
#bootstrap? ⇒ Boolean
-
#default_rack_env ⇒ Object
-
#initialize(exception) ⇒ RaiseError
constructor
A new instance of RaiseError.
-
#run ⇒ Object
Methods inherited from BaseCommand
#accepts, #args_description, #argv, #commands, #default_command, #default_command_class, #description, #env, #env_vars, #execute, #name, #options, #opts, #puts, #stderr, #stdin, #stdout, #system!
Constructor Details
#initialize(exception) ⇒ RaiseError
Returns a new instance of RaiseError.
3 4 5 |
# File 'lib/brut/cli/commands/raise_error.rb', line 3 def initialize(exception) @exception = exception end |
Instance Attribute Details
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
2 3 4 |
# File 'lib/brut/cli/commands/raise_error.rb', line 2 def exception @exception end |
Instance Method Details
#bootstrap? ⇒ Boolean
9 |
# File 'lib/brut/cli/commands/raise_error.rb', line 9 def bootstrap? = false |
#default_rack_env ⇒ Object
10 |
# File 'lib/brut/cli/commands/raise_error.rb', line 10 def default_rack_env = nil |
#run ⇒ Object
6 7 8 |
# File 'lib/brut/cli/commands/raise_error.rb', line 6 def run raise @exception end |