Sha256: 2c8f5ca17a4d26dd03f3d5c816c7d41efda28aac766e934923ec30aa0313e476

Contents?: true

Size: 457 Bytes

Versions: 14

Compression:

Stored size: 457 Bytes

Contents

class Specinfra::Command::Linux::Base::Inventory < Specinfra::Command::Base::Inventory
  class << self
    def get_memory
      'cat /proc/meminfo'
    end

    def get_cpu
      'cat /proc/cpuinfo'
    end

    def get_hostname
      'hostname -s'
    end

    def get_domain
      'dnsdomainname'
    end

    def get_fqdn
      'hostname -f'
    end

    def get_filesystem
      'df -P'
    end

    def get_kernel
      'uname -s -r'
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
specinfra-cisco-2.41.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-cisco-2.40.2 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.43.3 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.43.2 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.43.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.43.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.42.2 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.42.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.42.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.41.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.41.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.40.2 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.40.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.40.0 lib/specinfra/command/linux/base/inventory.rb