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.



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

def initialize(host)
  @host = host
end

Instance Method Details

#to_sObject



132
133
134
135
# File 'lib/exceptions.rb', line 132

def to_s
  "'sudo' isn't configured on the inspected host '#{@host}'." \
  " Remove the RequireTTY settings from sudoers.conf."
end