Sha256: bad4ef90a847c279746b75cdf5e24c1810ff51f201ce0b85e045a6a78fe153eb
Contents?: true
Size: 429 Bytes
Versions: 2
Compression:
Stored size: 429 Bytes
Contents
# LinuxAdmin /etc/issue Representation # # Copyright (C) 2014 Red Hat Inc. # Licensed under the MIT License require 'singleton' class LinuxAdmin class EtcIssue include Singleton PATH = '/etc/issue' def include?(osname) data.downcase.include?(osname.to_s.downcase) end def data @data ||= File.exists?(PATH) ? File.read(PATH) : "" end def refresh @data = nil end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
linux_admin-0.9.1 | lib/linux_admin/etc_issue.rb |
linux_admin-0.9.0 | lib/linux_admin/etc_issue.rb |