Sha256: c31d6addc56f2e94678e9f2c68bc0e087ffdd9fbe5a6bc4678d1d60eac0477c9

Contents?: true

Size: 311 Bytes

Versions: 2

Compression:

Stored size: 311 Bytes

Contents

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

    def get_hostname
      'hostname -s'
    end

    def get_domain
      'dnsdomainame'
    end

    def get_fqdn
      'hostname -f'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
specinfra-2.8.0 lib/specinfra/command/linux/base/inventory.rb
specinfra-2.7.0 lib/specinfra/command/linux/base/inventory.rb