Sha256: 39fc16baaaa213ce12b757b2bb2727360d66ca5c259be2133ac8e1c9f00a4906

Contents?: true

Size: 540 Bytes

Versions: 129

Compression:

Stored size: 540 Bytes

Contents

class Specinfra::Command::Freebsd::Base::Inventory < Specinfra::Command::Base::Inventory
  class << self
    def get_memory
      'false'
    end

    def get_cpu
      'false'
    end

    def get_hostname
      'hostname -s'
    end

    def get_domain
      'hostname -f | ' +
      'awk -v h=`hostname -s` \'$1 ~ h { sub(h".", "", $1); print $1 }\''
    end

    def get_fqdn
      'hostname -f'
    end

    def get_filesystem
      'df -k'
    end

    def get_system_product_name
      'kenv smbios.system.product'
    end
  end
end

Version data entries

129 entries across 129 versions & 1 rubygems

Version Path
specinfra-2.82.5 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.82.4 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.82.3 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.82.2 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.82.1 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.82.0 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.81.0 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.80.0 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.79.0 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.78.2 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.78.1 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.78.0 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.77.3 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.77.2 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.77.1 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.77.0 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.76.9 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.76.8 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.76.7 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.76.6 lib/specinfra/command/freebsd/base/inventory.rb