Exception: PDK::Util::GitError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pdk/util/git.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



6
7
8
# File 'lib/pdk/util/git.rb', line 6

def args
  @args
end

#exit_codeObject (readonly)

Returns the value of attribute exit_code.



6
7
8
# File 'lib/pdk/util/git.rb', line 6

def exit_code
  @exit_code
end

#stderrObject (readonly)

Returns the value of attribute stderr.



6
7
8
# File 'lib/pdk/util/git.rb', line 6

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



6
7
8
# File 'lib/pdk/util/git.rb', line 6

def stdout
  @stdout
end

Instance Method Details

#initialze(args, result) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/pdk/util/git.rb', line 8

def initialze(args, result)
  @args = args
  @stdout = result[:stdout]
  @stderr = result[:stderr]
  @exit_code = result[:exit_code]

  super(format('Git command failed: git %{args}', args: args.join(' ')))
end