Exception: Gitrb::CommandError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gitrb/repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, args, output) ⇒ CommandError

Returns a new instance of CommandError.


8
9
10
11
12
13
# File 'lib/gitrb/repository.rb', line 8

def initialize(command, args, output)
  super("#{command} failed")
  @command = command
  @args = args
  @output = output
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args


6
7
8
# File 'lib/gitrb/repository.rb', line 6

def args
  @args
end

#commandObject (readonly)

Returns the value of attribute command


6
7
8
# File 'lib/gitrb/repository.rb', line 6

def command
  @command
end

#outputObject (readonly)

Returns the value of attribute output


6
7
8
# File 'lib/gitrb/repository.rb', line 6

def output
  @output
end