# File lib/path/list.rb, line 14 def [](*entries) entries.each do |entry| case entry when Pathname push(@local + entry) else concat(Dir.glob(@local + entry).map{ |f| Pathname.new(f) }) end end return self end
(Not documented)
# File lib/path/list.rb, line 69 def absolute? ; all?{ |path| FileTest.absolute?(path) } ; end
(Not documented)
# File lib/path/list.rb, line 57 def blockdev? ; all?{ |path| FileTest.blockdev?(path) } ; end
(Not documented)
# File lib/path/list.rb, line 50 def chardev? ; all?{ |path| FileTest.chardev?(path) } ; end
(Not documented)
# File lib/path/list.rb, line 195 def chmod(mode, list, options={}) list = to_a fileutils.chmod(mode, list, options) end
(Not documented)
# File lib/path/list.rb, line 200 def chmod_r(mode, list, options={}) list = to_a fileutils.chmod_r(mode, list, options) end
alias_method :chmod_R, :chmod_r
# File lib/path/list.rb, line 206 def chown(user, group, list, options={}) list = to_a fileutils.chown(user, group, list, options) end
(Not documented)
# File lib/path/list.rb, line 211 def chown_r(user, group, list, options={}) list = to_a fileutils.chown_r(user, group, list, options) end
cp(list, dir, options={})
# File lib/path/list.rb, line 146 def cp(dest, options={}) src = to_a #dest = localize(dest) fileutils.cp(src, dest, options) end
cp_r(list, dir, options={})
# File lib/path/list.rb, line 154 def cp_r(dest, options={}) src = to_a #dest = localize(dest) fileutils.cp_r(src, dest, options) end
(Not documented)
# File lib/path/list.rb, line 47 def directory? ; all?{ |path| FileTest.directory?(path) } ; end
relative to local
# File lib/path/list.rb, line 27 def entries map{ |entry| entry.sub(local+'/','') } end
(Not documented)
# File lib/path/list.rb, line 64 def executable? ; all?{ |path| FileTest.executable?(path) } ; end
(Not documented)
# File lib/path/list.rb, line 72 def executable_real? ; all?{ |path| FileTest.executable_real?(path) } ; end
(Not documented)
# File lib/path/list.rb, line 51 def exist? ; all?{ |path| FileTest.exist?(path) } ; end
(Not documented)
# File lib/path/list.rb, line 52 def exists? ; all?{ |path| FileTest.exists?(path) } ; end
(Not documented)
# File lib/path/list.rb, line 55 def file? ; all?{ |path| FileTest.file?(path) } ; end
(Not documented)
# File lib/path/list.rb, line 58 def grpowned? ; all?{ |path| FileTest.grpowned?(path) } ; end
(Not documented)
# File lib/path/list.rb, line 77 def identical?(other) all?{ |path| FileTest.identical?(path, other) } end
(Not documented)
# File lib/path/list.rb, line 189 def install(src, dest, mode, options={}) src = to_a #dest = localize(dest) fileutils.install(src, dest, mode, options) end
ln(list, destdir, options={})
# File lib/path/list.rb, line 124 def ln(new, options={}) src = to_a #new = localize(new) fileutils.ln(src, new, options) end
ln_s(list, destdir, options={})
# File lib/path/list.rb, line 132 def ln_s(new, options={}) src = to_a #new = localize(new) fileutils.ln_s(src, new, options) end
(Not documented)
# File lib/path/list.rb, line 139 def ln_sf(new, options={}) src = to_a #new = localize(new) fileutils.ln_sf(src, new, options) end
# File lib/path/list.rb, line 110 def mkdir(options={}) map{ |dir| fileutils.mkdir(dir, options) } end
(Not documented)
# File lib/path/list.rb, line 114 def mkdir_p(options={}) map{ |dir| fileutils.mkdir_p(dir, options) } end
mv(list, dir, options={})
# File lib/path/list.rb, line 161 def mv(dest, options={}) src = to_a #dest = localize(dest) fileutils.mv(src, dest, options) end
# File lib/path/list.rb, line 243 def outofdate?(path) fileutils.outofdate?(path, to_a) end
(Not documented)
# File lib/path/list.rb, line 62 def owned? ; all?{ |path| FileTest.owned?(path) } ; end
(Not documented)
# File lib/path/list.rb, line 54 def pipe? ; all?{ |path| FileTest.pipe?(path) } ; end
Present working directory. (?)
# File lib/path/list.rb, line 105 def pwd @local end
(Not documented)
# File lib/path/list.rb, line 49 def readable? ; all?{ |path| FileTest.readable?(path) } ; end
(Not documented)
# File lib/path/list.rb, line 73 def readable_real? ; all?{ |path| FileTest.readable_real?(path) } ; end
Will these work since all paths are localized?
# File lib/path/list.rb, line 68 def relative? ; all?{ |path| FileTest.relative?(path) } ; end
(Not documented)
# File lib/path/list.rb, line 168 def rm(options={}) list = to_a fileutils.rm(list, options) end
(Not documented)
# File lib/path/list.rb, line 179 def rm_f(list, options={}) list = to_a fileutils.rm_f(list, options) end
(Not documented)
# File lib/path/list.rb, line 174 def rm_r(options={}) list = to_a fileutils.rm_r(list, options) end
(Not documented)
# File lib/path/list.rb, line 184 def rm_rf(list, options={}) list = to_a fileutils.rm_rf(list, options) end
(Not documented)
# File lib/path/list.rb, line 119 def rmdir(options={}) map{ |dir| fileutils.rmdir(dir, options) } end
(Not documented)
# File lib/path/list.rb, line 65 def safe? ; all?{ |path| FileTest.safe?(path) } ; end
(Not documented)
# File lib/path/list.rb, line 59 def setgid? ; all?{ |path| FileTest.setgid?(path) } ; end
(Not documented)
# File lib/path/list.rb, line 60 def setuid? ; all?{ |path| FileTest.setuid?(path) } ; end
# File lib/path/list.rb, line 42 def size inject(0){ |sum, path| sum + FileTest.size(path) } end
(Not documented)
# File lib/path/list.rb, line 61 def socket? ; all?{ |path| FileTest.socket?(path) } ; end
# File lib/path/list.rb, line 223 def stage(dir) #dir = localize(directory) #files = localize(files) #fileutils.stage(dir, work, entries) fileutils.stage(dir, local, entries) end
(Not documented)
# File lib/path/list.rb, line 56 def sticky? ; all?{ |path| FileTest.sticky?(path) } ; end
(Not documented)
# File lib/path/list.rb, line 48 def symlink? ; all?{ |path| FileTest.symlink?(path) } ; end
alias_method :chown_R, :chown_r
# File lib/path/list.rb, line 217 def touch(list, options={}) list = to_a fileutils.touch(list, options) end
# File lib/path/list.rb, line 248 def uptodate?(path) fileutils.uptodate?(path, to_a) end
(Not documented)
# File lib/path/list.rb, line 63 def writable? ; all?{ |path| FileTest.writable?(path) } ; end
Returns FileUtils module based on mode.
# File lib/path/list.rb, line 269 def fileutils if dryrun? ::FileUtils::DryRun elsif noop? ::FileUtils::Noop elsif verbose? ::FileUtils::Verbose else ::FileUtils end end
Disabled; run with --debug to generate this.