Methods

Facter::Util::Xendomains

A module to gather running Xen Domains

Public Class Methods

get_domains() click to toggle source
   # File lib/facter/util/xendomains.rb, line 4
4:   def self.get_domains
5:     if xm_list = Facter::Util::Resolution.exec('/usr/sbin/xm list 2>/dev/null')
6:       domains = xm_list.split("\n").reject { |line| line =~ /^(Name|Domain-0)/ }
7:       domains.map { |line| line.split(/\s/)[0] }.join(',')
8:     end
9:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.