Exception: Gofer::ClusterError

Inherits:
Exception
  • Object
show all
Defined in:
lib/gofer/cluster_error.rb

Overview

Error(s) encountered performing a Gofer command on a cluster of hosts

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors = {}) ⇒ ClusterError

Returns a new instance of ClusterError.


8
9
10
11
# File 'lib/gofer/cluster_error.rb', line 8

def initialize errors={}
  @errors = errors
  super errors.values.map(&:to_s).join(', ')
end

Instance Attribute Details

#errorsObject (readonly)

Exception instances by host


6
7
8
# File 'lib/gofer/cluster_error.rb', line 6

def errors
  @errors
end