Sha256: 9d3e96e494c973aca5a9bce543a3a37c0053dffe3a95391259c85ade97cfd0d4
Contents?: true
Size: 582 Bytes
Versions: 1
Compression:
Stored size: 582 Bytes
Contents
module AsciiDataTools module ExternalPrograms def modify_file_mtime_to(new_mtime) Kernel.system("touch -am -t #{new_mtime.strftime('%Y%m%d%H%M.%S')} #{self.path}") end def diff(files) IO.popen(diff_command_for(files)) end def diff_command_for(files) "diff " + files.collect(&:path).join(' ') end def sort(input_file, output_file) Kernel.system("sort #{input_file.path} > #{output_file.path}") end def edit_differences(filenames) Kernel.system("vimdiff #{filenames.join(' ')}") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ascii-data-tools-0.9 | lib/ascii-data-tools/external_programs.rb |