Exception: Sprinkle::NoMatchingServersError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sprinkle/policy.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(name, roles) ⇒ NoMatchingServersError

Returns a new instance of NoMatchingServersError



5
6
7
8
# File 'lib/sprinkle/policy.rb', line 5

def initialize(name, roles)
  @name = name
  @roles = roles
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/sprinkle/policy.rb', line 10

def to_s
  "Policy #{@name} is to be installed on #{@roles.inspect} but no server has such a role."
end