Sha256: 9226a9821e684d1ed130f47491d219759f971c2451e1fff3b50217edce9fe345
Contents?: true
Size: 395 Bytes
Versions: 1
Compression:
Stored size: 395 Bytes
Contents
require 'nokogiri' module LinuxAdmin module Rhn def self.systemid_file "/etc/sysconfig/rhn/systemid" end def self.registered? id = "" if File.exists?(systemid_file) xml = Nokogiri.XML(File.read(systemid_file)) id = xml.xpath('/params/param/value/struct/member[name="system_id"]/value/string').text end id.length > 0 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
linux_admin-0.0.1 | lib/linux_admin/rhn.rb |