Fixes #32434 - Fix warn about oudated apipie cache
When you run the rake task apipie:cache:index it prints a message thatthe cache is out of date:
API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
Since this is the command to actually generate that cache, the usershouldn't be bothered with it.
This approach uses Foreman.in_rake? to determine which task runs ratherthan parsing ARGV manually.
Fixes #32434 - Fix warn about oudated apipie cache
When you run the rake task apipie:cache:index it prints a message that
the cache is out of date:
Since this is the command to actually generate that cache, the user
shouldn't be bothered with it.
This approach uses Foreman.in_rake? to determine which task runs rather
than parsing ARGV manually.