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.34.3 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.34.2 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.34.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.34.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.33.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.33.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.32.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.31.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.31.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.30.4 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.30.3 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.30.2 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.30.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.30.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.29.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.28.4 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.28.3 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.28.2 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.28.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.28.0 lib/specinfra/command/linux/base/inventory.rb