Exception: GerritSeed::Shell::CommandError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gerrit_seed/shell.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message:, command:, exit_status:, output:) ⇒ CommandError

Returns a new instance of CommandError.



8
9
10
11
12
13
14
# File 'lib/gerrit_seed/shell.rb', line 8

def initialize(message:, command:, exit_status:, output:)
  @command = command
  @exit_status = exit_status
  @output = output

  super(message)
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



6
7
8
# File 'lib/gerrit_seed/shell.rb', line 6

def command
  @command
end

#exit_statusObject (readonly)

Returns the value of attribute exit_status.



6
7
8
# File 'lib/gerrit_seed/shell.rb', line 6

def exit_status
  @exit_status
end

#outputObject (readonly)

Returns the value of attribute output.



6
7
8
# File 'lib/gerrit_seed/shell.rb', line 6

def output
  @output
end