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

Version Path
kanamei-kanamei-keystone-0.0.12 lib/keystone/os/abstract_os.rb
kanamei-kanamei-keystone-0.0.13 lib/keystone/os/abstract_os.rb
kanamei-keystone-0.0.11 lib/keystone/os/abstract_os.rb
kanamei-keystone-0.0.12 lib/keystone/os/abstract_os.rb
kanamei-keystone-0.0.14 lib/keystone/os/abstract_os.rb
kanamei-keystone-0.0.15 lib/keystone/os/abstract_os.rb
kanamei-keystone-0.0.16 lib/keystone/os/abstract_os.rb
kanamei-keystone-0.0.17 lib/keystone/os/abstract_os.rb
kanamei-keystone-0.0.18 lib/keystone/os/abstract_os.rb
kanamei-keystone-0.0.19 lib/keystone/os/abstract_os.rb
kanamei-keystone-0.0.20 lib/keystone/os/abstract_os.rb
kanamei-keystone-0.0.21 lib/keystone/os/abstract_os.rb
kanamei-keystone-0.0.22 lib/keystone/os/abstract_os.rb
kanamei-keystone-0.0.23 lib/keystone/os/abstract_os.rb
kanamei-keystone-0.0.24 lib/keystone/os/abstract_os.rb
kanamei-keystone-0.0.25 lib/keystone/os/abstract_os.rb
kanamei-keystone-0.0.26 lib/keystone/os/abstract_os.rb
kanamei-keystone-0.0.27 lib/keystone/os/abstract_os.rb