Skip to content

Commit

Permalink
Announce when we detect Rake tasks
Browse files Browse the repository at this point in the history
Right now people are putting infinite scripts in their rakefile and it looks like it's getting stuck in `bundle clean` when it should look like it's getting stuck while detecting rake tasks.
  • Loading branch information
schneems committed Sep 28, 2016
1 parent ca1b963 commit c76f9e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/language_pack/ruby.rb
Expand Up @@ -747,6 +747,7 @@ def rake
rake_gem_available = bundler.has_gem?("rake") || ruby_version.rake_is_vendored?
raise_on_fail = bundler.gem_version('railties') && bundler.gem_version('railties') > Gem::Version.new('3.x')

topic "Detecting rake tasks"
rake = LanguagePack::Helpers::RakeRunner.new(rake_gem_available)
rake.load_rake_tasks!({ env: rake_env }, raise_on_fail)
rake
Expand Down

0 comments on commit c76f9e8

Please sign in to comment.