Class: Brut::CLI::Commands::OutputError
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Brut::CLI::Commands::OutputError
- Defined in:
- lib/brut/cli/commands/output_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) ⇒ OutputError
constructor
A new instance of OutputError.
-
#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) ⇒ OutputError
Returns a new instance of OutputError.
3 4 5 |
# File 'lib/brut/cli/commands/output_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/output_error.rb', line 2 def exception @exception end |
Instance Method Details
#bootstrap? ⇒ Boolean
11 |
# File 'lib/brut/cli/commands/output_error.rb', line 11 def bootstrap? = false |
#default_rack_env ⇒ Object
12 |
# File 'lib/brut/cli/commands/output_error.rb', line 12 def default_rack_env = nil |
#run ⇒ Object
6 7 8 9 |
# File 'lib/brut/cli/commands/output_error.rb', line 6 def run stderr.puts @exception. 65 end |