Is there a way to know the current rake task?

Is it possible to know the current rake task within ruby: # Rakefile task :install do MyApp.somemethod(options) end # myapp.rb class MyApp def somemetod(opts) ## current_task? end end ...