Sha256: 77b88498dfc796778a004016ea38f084f3317293396a2a4ed4c96ac8efbf49d2
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 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::Util General methods. - Sysadmin::Directory Enumerable Dir class. ====== Method ====== * Sysadmin::Util.create_multi_dimensional_hash Return new Multi Dimensional Hash object. * 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.3 | doc/README |