Type:
Module
Constants:
RUBY : RbConfig::CONFIG['ruby_install_name']

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.

run
  • References/Ruby on Rails/Ruby/Classes/Sys

run(cmd) Instance Public methods Run the system command cmd.

2025-01-10 15:47:30
ruby
  • References/Ruby on Rails/Ruby/Classes/Sys

ruby(*args) Instance Public methods Run a Ruby interpreter with the given arguments

2025-01-10 15:47:30
verbose
  • References/Ruby on Rails/Ruby/Classes/Sys

verbose(&block) Instance Public methods Perform a block with $verbose enabled

2025-01-10 15:47:30
copy
  • References/Ruby on Rails/Ruby/Classes/Sys

copy(file_name, dest_file) Instance Public methods Copy a single file from

2025-01-10 15:47:30
symlink_files
  • References/Ruby on Rails/Ruby/Classes/Sys

symlink_files(wildcard, dest_dir) Instance Public methods Symlink all files

2025-01-10 15:47:30
log
  • References/Ruby on Rails/Ruby/Classes/Sys

log(msg) Instance Public methods Write a message to standard error if $verbose

2025-01-10 15:47:30
install
  • References/Ruby on Rails/Ruby/Classes/Sys

install(wildcard, dest_dir, mode) Instance Public methods Install all the files

2025-01-10 15:47:30
for_files
  • References/Ruby on Rails/Ruby/Classes/Sys

for_files(*wildcards) Instance Public methods Perform a block with each file

2025-01-10 15:47:30
makedirs
  • References/Ruby on Rails/Ruby/Classes/Sys

makedirs(*dirs) Instance Public methods Make the directories given in dirs

2025-01-10 15:47:30
link
  • References/Ruby on Rails/Ruby/Classes/Sys

link(file_name, dest_file) Instance Public methods Link file_name

2025-01-10 15:47:30