Skip to content

Instantly share code, notes, and snippets.

@beakr
Created April 12, 2012 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beakr/2367061 to your computer and use it in GitHub Desktop.
Save beakr/2367061 to your computer and use it in GitHub Desktop.
FileUtils Dryrun
#!/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