Method: Specinfra::Command::Openbsd::Base::Inventory.get_domain
- Defined in:
- lib/specinfra/command/openbsd/base/inventory.rb
.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 |