Exception: Pocketknife::Error::NodeError::RsyncError

Inherits:
Pocketknife::Error::NodeError show all
Defined in:
lib/pocketknife/errors.rb

Overview

RsyncError

Exception raised if rsync command failed.

Instance Attribute Summary collapse

Attributes inherited from Pocketknife::Error::NodeError

#node

Instance Method Summary collapse

Constructor Details

#initialize(command, node) ⇒ RsyncError

Returns a new instance of RsyncError.



59
60
61
# File 'lib/pocketknife/errors.rb', line 59

def initialize(command, node)
  super("Failed while rsyncing: #{command}", node)
end

Instance Attribute Details

#commandString

Returns Command that failed.

Returns:

  • (String)

    Command that failed.



57
58
59
# File 'lib/pocketknife/errors.rb', line 57

def command
  @command
end