Sha256: e1bcf449612c59f8bf7e2d5745788b8a0de18a9de73c5a1144fb04c642542f45
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
sysadmin Name sysadmin - general-purpose library for system management Syntax require 'sysadmin' Description This is a collection of general-purpose processing library frequently used in scripts for system administration. ============ Installation ============ $ gem install sysadmin ====== Module ====== - Sysadmin::FileExtension Extend the File class. - Sysadmin::DirExtension Extend the Dir class. - Sysadmin::TimeExtension Extend the Time class. ===== Class ===== - Sysadmin::Directory Enumerable Dir class. ====== Method ====== * File.zread (file) Referred by Sysadmin::FileHandler. Read the file regardless of the uncompressed / compressed gz. * File.append_line(file, str) Append a string to a file. * File.new_line(file, str) Create a new file. * File.replace_line(file, src, out) Replace the string in the file. * FileString.remove_line(file, str) Remove the rows that match the string from the file. * Dir.filelist(dir, subdirectory=false) Return the file lists in the directory. * Time.strict_parse(str) Return nil when Time.parse failed in ruby 1.8.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sysadmin-0.1.2 | doc/README |