class Fuey::Inspections::RFCPing
Attributes
ashost[RW]
client[RW]
lang[RW]
passwd[RW]
response[RW]
sysnr[RW]
user[RW]
Public Instance Methods
_execute()
click to toggle source
# File lib/fuey_client/fuey/inspections/rfc_ping.rb, line 8 def _execute result, @response = Support::SAP.new(config).ping if result self.pass else self.fail end end
settings()
click to toggle source
# File lib/fuey_client/fuey/inspections/rfc_ping.rb, line 26 def settings config.reject{|k,v| k == 'passwd'} end
status_message()
click to toggle source
# File lib/fuey_client/fuey/inspections/rfc_ping.rb, line 21 def status_message return %(RFCPing #{state} for #{ashost}. #{@response}) if failed? %(RFCPing #{state} for #{ashost}.) end
to_s()
click to toggle source
# File lib/fuey_client/fuey/inspections/rfc_ping.rb, line 17 def to_s %(RFCPing #{ashost} with user #{user}) end
Private Instance Methods
config()
click to toggle source
# File lib/fuey_client/fuey/inspections/rfc_ping.rb, line 30 def config { 'ashost' => ashost, 'sysnr' => sysnr, 'client' => client, 'user' => user, 'passwd' => passwd, 'lang' => lang } end