Sha256: 74cd206913b8772497185f8150fa28d855c8401623258897bb60aa7e3f4e6506
Contents?: true
Size: 538 Bytes
Versions: 6
Compression:
Stored size: 538 Bytes
Contents
require 'fileutils' module VerboseFileUtils include FileUtils ## # Wrap _methods_ with _action_ log message. def self.log action, *methods methods.each do |meth| define_method meth do |*args| Commander::UI.log "#{action}", *args super end end end log "remove", :rm, :rm_r, :rm_rf, :rmdir log "create", :touch, :mkdir, :mkdir_p log "copy", :cp, :cp_r log "move", :mv log "change", :cd log "link", :ln, :ln_s log "install", :install end include VerboseFileUtils
Version data entries
6 entries across 6 versions & 1 rubygems