LoginSignup
3
3

More than 5 years have passed since last update.

同じ名前の rake task を定義すると上書きされずに共存する

Posted at
# Rakefile

desc 'foo'
task :conflicted_name do
  puts 'foo'
end

desc 'bar'
task :conflicted_name do
  puts 'bar'
end
$ rake -T
rake conflicted_name  # foo / bar

$ rake conflicted_name
foo
bar

どっちも実行される!

「なんか二重に実行されているのでは…?」ってときは、名前の衝突を疑ってみるといいかもです。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3