Class: ServerMonitor::VDConfiguration
- Inherits:
-
Object
- Object
- ServerMonitor::VDConfiguration
- Defined in:
- lib/servermonitor/megacli_vd_status.rb
Instance Attribute Summary collapse
-
#email_from ⇒ Object
Returns the value of attribute email_from.
-
#email_to ⇒ Object
Returns the value of attribute email_to.
-
#exit_codes ⇒ Object
Returns the value of attribute exit_codes.
-
#grep ⇒ Object
Returns the value of attribute grep.
-
#megacli ⇒ Object
Returns the value of attribute megacli.
-
#smtp_address ⇒ Object
Returns the value of attribute smtp_address.
-
#smtp_password ⇒ Object
Returns the value of attribute smtp_password.
-
#smtp_port ⇒ Object
Returns the value of attribute smtp_port.
-
#smtp_username ⇒ Object
Returns the value of attribute smtp_username.
Instance Method Summary collapse
-
#initialize ⇒ VDConfiguration
constructor
A new instance of VDConfiguration.
Constructor Details
#initialize ⇒ VDConfiguration
Returns a new instance of VDConfiguration.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/servermonitor/megacli_vd_status.rb', line 8 def initialize @megacli = "/usr/sbin/megacli" @grep = "/bin/grep" @exit_codes = false @email_from = nil @email_to = nil @smtp_address = nil @smtp_port = nil @smtp_username = nil @smtp_password = nil end |
Instance Attribute Details
#email_from ⇒ Object
Returns the value of attribute email_from.
6 7 8 |
# File 'lib/servermonitor/megacli_vd_status.rb', line 6 def email_from @email_from end |
#email_to ⇒ Object
Returns the value of attribute email_to.
6 7 8 |
# File 'lib/servermonitor/megacli_vd_status.rb', line 6 def email_to @email_to end |
#exit_codes ⇒ Object
Returns the value of attribute exit_codes.
6 7 8 |
# File 'lib/servermonitor/megacli_vd_status.rb', line 6 def exit_codes @exit_codes end |
#grep ⇒ Object
Returns the value of attribute grep.
6 7 8 |
# File 'lib/servermonitor/megacli_vd_status.rb', line 6 def grep @grep end |
#megacli ⇒ Object
Returns the value of attribute megacli.
6 7 8 |
# File 'lib/servermonitor/megacli_vd_status.rb', line 6 def megacli @megacli end |
#smtp_address ⇒ Object
Returns the value of attribute smtp_address.
6 7 8 |
# File 'lib/servermonitor/megacli_vd_status.rb', line 6 def smtp_address @smtp_address end |
#smtp_password ⇒ Object
Returns the value of attribute smtp_password.
6 7 8 |
# File 'lib/servermonitor/megacli_vd_status.rb', line 6 def smtp_password @smtp_password end |
#smtp_port ⇒ Object
Returns the value of attribute smtp_port.
6 7 8 |
# File 'lib/servermonitor/megacli_vd_status.rb', line 6 def smtp_port @smtp_port end |
#smtp_username ⇒ Object
Returns the value of attribute smtp_username.
6 7 8 |
# File 'lib/servermonitor/megacli_vd_status.rb', line 6 def smtp_username @smtp_username end |