Class: Keystone::Os::AbstractOs

Inherits:
Object
  • Object
show all
Defined in:
lib/keystone/os/abstract_os.rb

Direct Known Subclasses

Unix

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#versionObject

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

#diskObject



13
14
# File 'lib/keystone/os/abstract_os.rb', line 13

def disk
end

#dumpObject



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

#hostnameObject



10
11
# File 'lib/keystone/os/abstract_os.rb', line 10

def hostname
end

#ip_addressObject



7
8
# File 'lib/keystone/os/abstract_os.rb', line 7

def ip_address
end

#netstatObject



19
20
# File 'lib/keystone/os/abstract_os.rb', line 19

def netstat
end

#process_listObject



16
17
# File 'lib/keystone/os/abstract_os.rb', line 16

def process_list
end