Sha256: 908fe39bbb5c8b32d497ab22a3edb80d26b25a12869a2e6331ac4e33e43b473a

Contents?: true

Size: 409 Bytes

Versions: 93

Compression:

Stored size: 409 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
  end
end

Version data entries

93 entries across 93 versions & 1 rubygems

Version Path
specinfra-2.27.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.27.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.26.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.26.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.25.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.25.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.24.2 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.24.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.24.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.23.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.22.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.21.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.21.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.20.2 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.20.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.20.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.19.6 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.19.5 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.19.4 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.19.3 lib/specinfra/command/linux/base/inventory.rb