Class: Specinfra::Command::Openbsd::Base::Inventory
- Inherits:
-
Base::Inventory
- Object
- Base
- Base::Inventory
- Specinfra::Command::Openbsd::Base::Inventory
- Defined in:
- lib/specinfra/command/openbsd/base/inventory.rb
Class Method Summary collapse
- .get_cpu ⇒ Object
- .get_domain ⇒ Object
- .get_filesystem ⇒ Object
- .get_fqdn ⇒ Object
- .get_hostname ⇒ Object
- .get_memory ⇒ Object
- .get_system_product_name ⇒ Object
Methods inherited from Base
Class Method Details
.get_cpu ⇒ Object
7 8 9 |
# File 'lib/specinfra/command/openbsd/base/inventory.rb', line 7 def get_cpu 'false' end |
.get_domain ⇒ Object
15 16 17 18 |
# File 'lib/specinfra/command/openbsd/base/inventory.rb', line 15 def get_domain 'hostname | ' + 'awk -v h=`hostname -s` \'$1 ~ h { sub(h".", "", $1); print $1 }\'' end |
.get_filesystem ⇒ Object
24 25 26 |
# File 'lib/specinfra/command/openbsd/base/inventory.rb', line 24 def get_filesystem 'df -kP' end |
.get_fqdn ⇒ Object
20 21 22 |
# File 'lib/specinfra/command/openbsd/base/inventory.rb', line 20 def get_fqdn 'hostname' end |
.get_hostname ⇒ Object
11 12 13 |
# File 'lib/specinfra/command/openbsd/base/inventory.rb', line 11 def get_hostname 'hostname -s' end |
.get_memory ⇒ Object
3 4 5 |
# File 'lib/specinfra/command/openbsd/base/inventory.rb', line 3 def get_memory 'false' end |
.get_system_product_name ⇒ Object
28 29 30 |
# File 'lib/specinfra/command/openbsd/base/inventory.rb', line 28 def get_system_product_name 'sysctl -n hw.product' end |