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.



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

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.



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

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



4
5
6
# File 'lib/pdk/util/git.rb', line 4

def stdout
  @stdout
end

Instance Method Details

#initialze(args, result) ⇒ Object



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

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

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