Exception: GitClient::GitError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/fwtoolkit/git_client/git_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_outputObject (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

Returns:

  • (Boolean)


11
12
13
# File 'lib/fwtoolkit/git_client/git_client.rb', line 11

def conflict?
  git_output.any { |line| line.include? 'CONFLICT' }
end