I\'ve got a plugin that is a bit heavy-weight. (Bullet, configured with Growl notifications.) I\'d like to not enable it if I\'m just running a rake task or a generator, since i
It's as simple as that:
if $rails_rake_task puts 'Guess what, I`m running from Rake' else puts 'No; this is not a Rake task' end
Instead of $rails_rake_task, use:
$rails_rake_task
File.basename($0) == 'rake'