Exception: QB::Docker::CLI::Error
- Defined in:
- lib/qb/docker/cli.rb
Overview
Classes
Direct Known Subclasses
Class Method Summary collapse
-
.from_result(result) ⇒ self
Make an instance from a Cmds::Result.
Class Method Details
.from_result(result) ⇒ self
Make an instance from a Cmds::Result.
54 55 56 57 58 59 60 61 |
# File 'lib/qb/docker/cli.rb', line 54 def self.from_result result new \ ( "Command `#{ result.cmd.truncate 40 }` " + "failed with exit status #{ result.status }" ), status: result.status, stderr: result.err, stdout: result.out end |