Module: RakeCommander::Patcher::Application::TopLevelResume::Patch

Defined in:
lib/rake-commander/patcher/application/top_level_resume.rb

Instance Method Summary collapse

Instance Method Details

#top_levelObject

To preserve rake as main executable, as the RunMethod::Patch is applied only when Rake::Application requires the Rakefile that loads rake-commander, we technically only need to fix the top_level_tasks that have been detected.



28
29
30
31
32
33
# File 'lib/rake-commander/patcher/application/top_level_resume.rb', line 28

def top_level
  RakeCommander.self_load_reset
  argv = RakeCommander.argv_rake_native_arguments(ARGV)
  Rake.application.send(:collect_command_line_tasks, argv)
  super
end