Class: GitLab::Exporter::CommandResult
- Inherits:
-
Struct
- Object
- Struct
- GitLab::Exporter::CommandResult
- Defined in:
- lib/gitlab_exporter/git.rb
Overview
Result of a command
Provides some handy methods for checking if the execution failed and a simple to_s that will return the command output
Instance Attribute Summary collapse
-
#status ⇒ Object
Returns the value of attribute status.
-
#stdout ⇒ Object
Returns the value of attribute stdout.
Instance Method Summary collapse
Instance Attribute Details
#status ⇒ Object
Returns the value of attribute status
48 49 50 |
# File 'lib/gitlab_exporter/git.rb', line 48 def status @status end |
#stdout ⇒ Object
Returns the value of attribute stdout
48 49 50 |
# File 'lib/gitlab_exporter/git.rb', line 48 def stdout @stdout end |
Instance Method Details
#failed? ⇒ Boolean
49 50 51 |
# File 'lib/gitlab_exporter/git.rb', line 49 def failed? status.nonzero? end |
#to_s ⇒ Object
57 58 59 |
# File 'lib/gitlab_exporter/git.rb', line 57 def to_s stdout end |