Skip to content

Instantly share code, notes, and snippets.

@jamiecobbett
Created February 19, 2010 15:47
Show Gist options
  • Save jamiecobbett/308807 to your computer and use it in GitHub Desktop.
Save jamiecobbett/308807 to your computer and use it in GitHub Desktop.
Is the command being used to run this code rake with a specific task?
if ( File.basename($0) == "rake" && ARGV.include?("gems:install") )
# do stuff
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment