Sha256: 6d312000d7da30cb430b15f682984fc0c473ca32415c517e527f7fcfc576bc52
Contents?: true
Size: 396 Bytes
Versions: 1
Compression:
Stored size: 396 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 initialize refresh end def to_s @data.to_s end private def refresh @data = File.exists?(PATH) ? File.read(PATH) : "" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
linux_admin-0.8.1 | lib/linux_admin/etc_issue.rb |