Exception: PDK::Util::GitError
- Inherits:
-
StandardError
- Object
- StandardError
- PDK::Util::GitError
- Defined in:
- lib/pdk/util/git.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
6 7 8 |
# File 'lib/pdk/util/git.rb', line 6 def args @args end |
#exit_code ⇒ Object (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 |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
6 7 8 |
# File 'lib/pdk/util/git.rb', line 6 def stderr @stderr end |
#stdout ⇒ Object (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 |