Sha256: d13c03b6af6a6e3bfd5f78a040f37e880c5d955475965a9ee579c5fb4466a3f4
Contents?: true
Size: 451 Bytes
Versions: 3
Compression:
Stored size: 451 Bytes
Contents
# Utilities for Rakefiles. #-- # Copyright 2006 Suraj N. Kurapati # See the file named LICENSE for details. require 'fileutils' module FileUtils alias old_sh sh # An improved sh() that also accepts arrays as arguments. def sh *aArgs, &aBlock old_sh(*collect_args(aArgs).reject {|i| i.to_s.empty?}, &aBlock) end # Collects the given arguments into a single, sparse array. def collect_args *aArgs aArgs.flatten.compact end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-vpi-18.0.2 | lib/ruby-vpi/rake.rb |
ruby-vpi-18.0.1 | lib/ruby-vpi/rake.rb |
ruby-vpi-19.0.0 | lib/ruby-vpi/rake.rb |