Sha256: bf4b419ba7aef0203d7df24601340e7a1d9ed676a3d0f58b21a9eb6ea23e14e2

Contents?: true

Size: 459 Bytes

Versions: 40

Compression:

Stored size: 459 Bytes

Contents

class Specinfra::Command::Openbsd::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 | ' +
      'awk -v h=`hostname -s` \'$1 ~ h { sub(h".", "", $1); print $1 }\''
    end

    def get_fqdn
      'hostname'
    end

    def get_filesystem
      'df -kP'
    end
  end
end

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
specinfra-cisco-2.41.0 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.43.11 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-cisco-2.40.2 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.43.10 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.43.9 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.43.8 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.43.7 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.43.6 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.43.5 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.43.4 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.43.3 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.43.2 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.43.1 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.43.0 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.42.2 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.42.1 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.42.0 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.41.1 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.41.0 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.40.2 lib/specinfra/command/openbsd/base/inventory.rb