cd

cd(dir, options = {})
Class Public methods

Options: verbose

Changes the current directory to the directory dir.

If this method is called with block, resumes to the old working directory after the block execution finished.

FileUtils.cd('/', :verbose => true)   # chdir and report it

FileUtils.cd('/') do  # chdir
  [...]               # do something
end                   # return to original directory

chdir

doc_ruby_on_rails
2015-04-06 17:51:23
Comments
Leave a Comment

Please login to continue.