Exception: GitClient::GitError
- Inherits:
-
StandardError
- Object
- StandardError
- GitClient::GitError
- Defined in:
- lib/fwtoolkit/git_client/git_client.rb
Instance Attribute Summary collapse
-
#git_output ⇒ Object
readonly
Returns the value of attribute git_output.
Instance Method Summary collapse
- #conflict? ⇒ Boolean
-
#initialize(git_output) ⇒ GitError
constructor
A new instance of GitError.
Constructor Details
#initialize(git_output) ⇒ GitError
Returns a new instance of GitError.
6 7 8 9 |
# File 'lib/fwtoolkit/git_client/git_client.rb', line 6 def initialize(git_output) super @git_output = git_output end |
Instance Attribute Details
#git_output ⇒ Object (readonly)
Returns the value of attribute git_output.
4 5 6 |
# File 'lib/fwtoolkit/git_client/git_client.rb', line 4 def git_output @git_output end |
Instance Method Details
#conflict? ⇒ Boolean
11 12 13 |
# File 'lib/fwtoolkit/git_client/git_client.rb', line 11 def conflict? git_output.any { |line| line.include? 'CONFLICT' } end |