lib/exceptions.rb in machinery-tool-1.7.0 vs lib/exceptions.rb in machinery-tool-1.8.0

- old
+ new

@@ -97,9 +97,20 @@ message += "\n" message end end + class InsufficientPrivileges < MachineryError + def initialize(remote_user, host) + @remote_user = remote_user + @host = host + end + + def to_s + "The remote user '#{@remote_user}' is not allowed to run 'sudo' on host '#{@host}'." + end + end + class MigrationError < MachineryError; end class InvalidFilter < MachineryError; end class ElementFilterTypeMismatch < MachineryError attr_accessor :failed_matcher