Exception: Machinery::Errors::SudoMissingTTY
- Inherits:
-
MachineryError
- Object
- StandardError
- MachineryError
- Machinery::Errors::SudoMissingTTY
- Defined in:
- lib/exceptions.rb
Instance Method Summary collapse
-
#initialize(host) ⇒ SudoMissingTTY
constructor
A new instance of SudoMissingTTY.
- #to_s ⇒ Object
Constructor Details
#initialize(host) ⇒ SudoMissingTTY
Returns a new instance of SudoMissingTTY.
146 147 148 |
# File 'lib/exceptions.rb', line 146 def initialize(host) @host = host end |
Instance Method Details
#to_s ⇒ Object
150 151 152 153 |
# File 'lib/exceptions.rb', line 150 def to_s "'sudo' isn't configured on the inspected host '#{@host}'." \ " Remove the 'requiretty' settings from /etc/sudoers by running `visudo`." end |