Sha256: 121ee4515152e9c58470dead2c61c250b0b373e56fe33649d47fced298e045d7

Contents?: true

Size: 464 Bytes

Versions: 88

Compression:

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

Version data entries

88 entries across 88 versions & 3 rubygems

Version Path
specinfra-rb19-2.44.7 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.59.0 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.58.0 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.57.5 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.57.4 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.57.3 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.57.2 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.57.1 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-cisco-2.41.0 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.57.0 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.56.1 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.56.0 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.55.0 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.54.2 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.54.1 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.54.0 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.53.1 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.53.0 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.52.0 lib/specinfra/command/freebsd/base/inventory.rb
specinfra-2.51.2 lib/specinfra/command/freebsd/base/inventory.rb