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.76.5 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.76.4 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.76.3 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.76.2 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.76.1 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.76.0 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.75.1 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-rb19-2.44.7 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.75.0 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.74.0 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.73.4 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.73.3 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.73.2 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.73.1 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.73.0 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.72.1 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.72.0 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.71.3 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.71.2 lib/specinfra/command/openbsd/base/inventory.rb
specinfra-2.71.1 lib/specinfra/command/openbsd/base/inventory.rb