Class: Specinfra::Command::Darwin::Base::Inventory

Inherits:
Base::Inventory show all
Defined in:
lib/specinfra/command/darwin/base/inventory.rb

Class Method Summary collapse

Methods inherited from Base::Inventory

get_group, get_user

Methods inherited from Base

create, escape

Class Method Details

.get_cpuObject



7
8
9
# File 'lib/specinfra/command/darwin/base/inventory.rb', line 7

def get_cpu
  'false'
end

.get_domainObject



19
20
21
22
# File 'lib/specinfra/command/darwin/base/inventory.rb', line 19

def get_domain
  'hostname -f | ' +
  'awk -v h=`hostname -s` \'$1 ~ h { sub(h".", "", $1); print $1 }\''
end

.get_filesystemObject



28
29
30
# File 'lib/specinfra/command/darwin/base/inventory.rb', line 28

def get_filesystem
  'df -k'
end

.get_fqdnObject



24
25
26
# File 'lib/specinfra/command/darwin/base/inventory.rb', line 24

def get_fqdn
  'hostname -f'
end

.get_hostnameObject



15
16
17
# File 'lib/specinfra/command/darwin/base/inventory.rb', line 15

def get_hostname
  'hostname -s'
end

.get_kernelObject



11
12
13
# File 'lib/specinfra/command/darwin/base/inventory.rb', line 11

def get_kernel
  'false'
end

.get_memoryObject



3
4
5
# File 'lib/specinfra/command/darwin/base/inventory.rb', line 3

def get_memory
  'false'
end