Exception: KamalBackup::CommandError

Inherits:
Error
  • Object
show all
Defined in:
lib/kamal_backup/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, command:, status: nil, stdout: "", stderr: "") ⇒ CommandError

Returns a new instance of CommandError.



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

def initialize(message, command:, status: nil, stdout: "", stderr: "")
  super(message)
  @command = command
  @status = status
  @stdout = stdout.to_s
  @stderr = stderr.to_s
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



6
7
8
# File 'lib/kamal_backup/errors.rb', line 6

def command
  @command
end

#statusObject (readonly)

Returns the value of attribute status.



6
7
8
# File 'lib/kamal_backup/errors.rb', line 6

def status
  @status
end

#stderrObject (readonly)

Returns the value of attribute stderr.



6
7
8
# File 'lib/kamal_backup/errors.rb', line 6

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



6
7
8
# File 'lib/kamal_backup/errors.rb', line 6

def stdout
  @stdout
end