Exception: Machinery::Errors::InsufficientPrivileges

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

Instance Method Summary collapse

Constructor Details

#initialize(remote_user, host) ⇒ InsufficientPrivileges

Returns a new instance of InsufficientPrivileges.



121
122
123
124
# File 'lib/exceptions.rb', line 121

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

Instance Method Details

#to_sObject



126
127
128
129
130
# File 'lib/exceptions.rb', line 126

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