lib/exceptions.rb in machinery-tool-1.22.0 vs lib/exceptions.rb in machinery-tool-1.22.1

- old
+ new

@@ -116,12 +116,23 @@ @remote_user = remote_user @host = host end def to_s - "sudo isn't configured on the inspected host '#{@host}' for user '#{@remote_user}' to " \ + "'sudo' isn't configured on the inspected host '#{@host}' for user '#{@remote_user}' to " \ "give all required commands enough privileges. See 'PREREQUISITES' section in the " \ "machinery documentation for a description on how to configure sudo on the inspected host." + end + end + + class SudoMissingTTY < MachineryError + def initialize(host) + @host = host + end + + def to_s + "'sudo' isn't configured on the inspected host '#{@host}'." \ + " Remove the RequireTTY settings from sudoers.conf." end end class MigrationError < MachineryError; end