We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
heroku_clear_tasks
1 parent c958543 commit e801f7dCopy full SHA for e801f7d
lib/language_pack/test/rails2.rb
@@ -36,6 +36,7 @@ def db_test_tasks_to_clear
36
def clear_db_test_tasks
37
FileUtils::mkdir_p 'lib/tasks'
38
File.open("lib/tasks/heroku_clear_tasks.rake", "w") do |file|
39
+ file.puts "# rubocop:disable all"
40
content = db_test_tasks_to_clear.map do |task_name|
41
<<-FILE
42
Rake::Task['#{task_name}'].clear
@@ -44,6 +45,7 @@ def clear_db_test_tasks
44
45
FILE
46
end.join("\n")
47
file.print content
48
+ file.puts "# rubocop:enable all"
49
end
50
51
0 commit comments