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.



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

def version
  @version
end

Instance Method Details

#diskObject



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

def disk
end

#dumpObject



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

#hostnameObject



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

def hostname
end

#ip_addressObject



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

def ip_address
end

#netstatObject



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

def netstat
end

#process_listObject



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

def process_list
end