Sha256: 20d373e91e60f9c2c6fbb2b78fff9d5a23f6df1b3bc33e2fa4735e890ae88999

Contents?: true

Size: 533 Bytes

Versions: 170

Compression:

Stored size: 533 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
 
    def get_system_product_name
      'sysctl -n hw.product' 
    end 

  end
end

Version data entries

170 entries across 170 versions & 2 rubygems

Version Path
specinfra-2.82.25 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.24 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.23 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.22 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.21 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.20 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.19 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.18 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.17 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.16 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.15 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.14 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.13 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.12 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.11 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.10 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.9 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.8 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.7 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.82.6 lib/specinfra/command/openbsd/base/inventory.rb