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.
5 6 7 |
# File 'lib/keystone/os/abstract_os.rb', line 5 def version @version end |
Instance Method Details
#disk ⇒ Object
13 14 |
# File 'lib/keystone/os/abstract_os.rb', line 13 def disk end |
#dump ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/keystone/os/abstract_os.rb', line 22 def dump self_methods = self.methods - Class.methods self_methods.delete("version=") self_methods.delete("dump") st = "" self_methods.each do |method| st << "== #{method} ==\n #{self.__send__(method).to_s.split("\n").join("\n ")}\n" end return st end |
#hostname ⇒ Object
10 11 |
# File 'lib/keystone/os/abstract_os.rb', line 10 def hostname end |
#ip_address ⇒ Object
7 8 |
# File 'lib/keystone/os/abstract_os.rb', line 7 def ip_address end |
#netstat ⇒ Object
19 20 |
# File 'lib/keystone/os/abstract_os.rb', line 19 def netstat end |
#process_list ⇒ Object
16 17 |
# File 'lib/keystone/os/abstract_os.rb', line 16 def process_list end |