Exception: Machinery::Errors::SudoMissingTTY

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

Instance Method Summary collapse

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_sObject



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