Exception: Machinery::Errors::InsufficientPrivileges
- Inherits:
-
MachineryError
- Object
- StandardError
- MachineryError
- Machinery::Errors::InsufficientPrivileges
- Defined in:
- lib/exceptions.rb
Instance Method Summary collapse
-
#initialize(remote_user, host) ⇒ InsufficientPrivileges
constructor
A new instance of InsufficientPrivileges.
- #to_s ⇒ Object
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_s ⇒ Object
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 |