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.19.2 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.19.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.19.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.18.3 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.18.2 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.18.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.18.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.17.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.17.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.16.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.15.2 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.15.1 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.15.0 lib/specinfra/command/linux/base/inventory.rb