Class: Rake::Application

Inherits:
Object show all
Defined in:
lib/chrysalis/rake_ext/intercept.rb

Instance Method Summary collapse

Instance Method Details

#rake_top_levelObject



73
# File 'lib/chrysalis/rake_ext/intercept.rb', line 73

alias_method :rake_top_level, :top_level

#top_levelObject

Invoked after the main rakefile has been loaded, but before any tasks are executed.

Chrysalis reimplements this method for the purpose of hooking into the loader and seeding the all: namespace with tasks, prior to retrieval of dependencies.

After invoking the hook, execution proceeds with Rake’s original method.



83
84
85
86
# File 'lib/chrysalis/rake_ext/intercept.rb', line 83

def top_level
  Chrysalis.post :rakefile_loaded
  rake_top_level
end