Sha256: 1e85c6585bfd8add873927fd98f99428141d59c50897dc0cb481bfeccc810755
Contents?: true
Size: 320 Bytes
Versions: 25
Compression:
Stored size: 320 Bytes
Contents
require 'singleton' module LinuxAdmin class EtcIssue include Singleton PATH = '/etc/issue' def include?(osname) data.downcase.include?(osname.to_s.downcase) end def data @data ||= File.exist?(PATH) ? File.read(PATH) : "" end def refresh @data = nil end end end
Version data entries
25 entries across 25 versions & 1 rubygems