Exception: Machinery::Errors::InsufficientPrivileges

Inherits:
MachineryError
  • Object
show all
Defined in:
lib/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(remote_user, host) ⇒ InsufficientPrivileges

Returns a new instance of InsufficientPrivileges.



103
104
105
106
# File 'lib/exceptions.rb', line 103

def initialize(remote_user, host)
  @remote_user = remote_user
  @host = host
end

Instance Method Details

#to_sObject



108
109
110
111
112
# File 'lib/exceptions.rb', line 108

def to_s
  "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 man page for a description on how to configure sudo on the inspected host."
end