Flowdock
def_builtin_commands(delegation_class, command_specs) public

:nodoc:

Delegates File and FileTest methods into Shell, including the following commands:

  • Shell#blockdev?(file)

  • Shell#chardev?(file)

  • Shell#directory?(file)

  • Shell#executable?(file)

  • Shell#executable_real?(file)

  • Shell#exist?(file)/Shell#exists?(file)

  • Shell#file?(file)

  • Shell#grpowned?(file)

  • Shell#owned?(file)

  • Shell#pipe?(file)

  • Shell#readable?(file)

  • Shell#readable_real?(file)

  • Shell#setgid?(file)

  • Shell#setuid?(file)

  • Shell#size(file)/Shell#size?(file)

  • Shell#socket?(file)

  • Shell#sticky?(file)

  • Shell#symlink?(file)

  • Shell#writable?(file)

  • Shell#writable_real?(file)

  • Shell#zero?(file)

  • Shell#syscopy(filename_from, filename_to)

  • Shell#copy(filename_from, filename_to)

  • Shell#move(filename_from, filename_to)

  • Shell#compare(filename_from, filename_to)

  • Shell#safe_unlink(*filenames)

  • Shell#makedirs(*filenames)

  • Shell#install(filename_from, filename_to, mode)

And also, there are some aliases for convenience:

  • Shell#cmp <- Shell#compare

  • Shell#mv <- Shell#move

  • Shell#cp <- Shell#copy

  • Shell#rm_f <- Shell#safe_unlink

  • Shell#mkpath <- Shell#makedirs

Show source
Register or log in to add new notes.