Created
April 12, 2012 13:02
-
-
Save beakr/2367061 to your computer and use it in GitHub Desktop.
FileUtils Dryrun
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'fileutils' | |
include FileUtils::DryRun # Will only print what your command does. Useful if you're using | |
# something like `rm -rf`. | |
mkdir('test') | |
cd('test') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment