Exception: Git::CommandFailed

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, exitstatus, error = '') ⇒ CommandFailed

Returns a new instance of CommandFailed.



10
11
12
13
14
15
# File 'lib/repo_manager/git/lib.rb', line 10

def initialize(command, exitstatus, error='')
  @command = command
  @exitstatus = exitstatus
  @error = error
  super "Command exited with #{exitstatus}: #{command}"
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



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

def command
  @command
end

#errorObject (readonly)

Returns the value of attribute error.



8
9
10
# File 'lib/repo_manager/git/lib.rb', line 8

def error
  @error
end

#exitstatusObject (readonly)

Returns the value of attribute exitstatus.



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

def exitstatus
  @exitstatus
end