Class: Keystone::Os::AbstractOs
- Defined in:
- lib/keystone/os/abstract_os.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #disk ⇒ Object
- #dump ⇒ Object
- #hostname ⇒ Object
- #ip_address ⇒ Object
- #netstat ⇒ Object
- #process_list ⇒ Object
Instance Attribute Details
#version ⇒ Object
Returns the value of attribute version.
6 7 8 |
# File 'lib/keystone/os/abstract_os.rb', line 6 def version @version end |
Instance Method Details
#disk ⇒ Object
14 15 |
# File 'lib/keystone/os/abstract_os.rb', line 14 def disk end |
#dump ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/keystone/os/abstract_os.rb', line 23 def dump self_methods = self.methods - Class.methods self_methods.delete(:version=) self_methods.delete(:dump) self_methods.delete(:bin_or_usrbin) Keystone::Base::Logger.instance.debug self_methods st = "" self_methods.each do |method| #p method st << "== #{method} ==\n #{self.__send__(method).to_s.split("\n").join("\n ")}\n" end return st end |
#hostname ⇒ Object
11 12 |
# File 'lib/keystone/os/abstract_os.rb', line 11 def hostname end |
#ip_address ⇒ Object
8 9 |
# File 'lib/keystone/os/abstract_os.rb', line 8 def ip_address end |
#netstat ⇒ Object
20 21 |
# File 'lib/keystone/os/abstract_os.rb', line 20 def netstat end |
#process_list ⇒ Object
17 18 |
# File 'lib/keystone/os/abstract_os.rb', line 17 def process_list end |