Exception: Sprinkle::NoMatchingServersError
- Defined in:
- lib/sprinkle/policy.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(name, roles) ⇒ NoMatchingServersError
constructor
A new instance of NoMatchingServersError.
- #to_s ⇒ Object
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_s ⇒ Object
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 |