Exception: R10K::Util::Subprocess::SubprocessError Private
- Includes:
- R10K::Util::Setopts
- Defined in:
- lib/r10k/util/subprocess/subprocess_error.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary
Constants included from Logging
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
private
!@attribute [r] result @return [R10K::Util::Subprocess::Result].
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(mesg, options = {}) ⇒ SubprocessError
constructor
private
A new instance of SubprocessError.
- #message ⇒ Object private
Methods included from Logging
debug_formatter, default_formatter, default_outputter, #logger, #logger_name, parse_level
Methods inherited from Error
Constructor Details
#initialize(mesg, options = {}) ⇒ SubprocessError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of SubprocessError.
13 14 15 16 |
# File 'lib/r10k/util/subprocess/subprocess_error.rb', line 13 def initialize(mesg, = {}) super setopts(, {:result => true}) end |
Instance Attribute Details
#result ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
!@attribute [r] result
@return [R10K::Util::Subprocess::Result]
9 10 11 |
# File 'lib/r10k/util/subprocess/subprocess_error.rb', line 9 def result @result end |
Instance Method Details
#message ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 21 22 23 |
# File 'lib/r10k/util/subprocess/subprocess_error.rb', line 18 def msg = [] msg << "#{super}:" msg << @result.format msg.join("\n") end |