Module

Sys

Sys provides a number of file manipulation tools for the convenience of writing Rakefiles. All commands in this module will announce their activity on standard output if the $verbose flag is set ($verbose = true is the default). You can control this by globally setting $verbose or by using the verbose and quiet methods.

Sys has been deprecated in favor of the FileUtils module available in Ruby 1.8.

Constants
RUBY
Public Methods
copy Copy a single file from file_name to dest_file.
copy_files Copy all files matching wildcard into the directory dest_dir.
delete Remove all files matching wildcard. If a matching file is a directory, it must be empty to be removed. used delete_all to recursively delete directories.
delete_all Recursively delete all files and directories matching wildcard.
for_files Perform a block with each file matching a set of wildcards.
indir Make dir the current working directory for the duration of executing the given block.
install Install all the files matching wildcard into the dest_dir directory. The permission mode is set to mode.
link Link file_name to dest_file.
link_files Link all files matching wildcard into the directory dest_dir.
log Write a message to standard out if $verbose is enabled.
makedirs Make the directories given in dirs.
quiet Perform a block with $verbose disabled.
ruby Run a Ruby interpreter with the given arguments.
run Run the system command cmd.
split_all Split a file path into individual directory names.
symlink Symlink file_name to dest_file.
symlink_files Symlink all files matching wildcard into the directory dest_dir.
verbose Perform a block with $verbose enabled.
Private Methods
for_matching_files
with_verbose
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.