Sha256: 3070a3f9902a04eb2ecac8d64ae246409c3ecb31065f5cbe5a19e23265a78484
Contents?: true
Size: 591 Bytes
Versions: 18
Compression:
Stored size: 591 Bytes
Contents
module Keystone module Os class AbstractOs attr_accessor :version def ip_address end def hostname end def disk end def process_list end def netstat end 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 end end end
Version data entries
18 entries across 18 versions & 2 rubygems