Added by Ivan Necas about 5 years ago. Updated 10 months ago.
More details: this happens only with Katello in place.
However, tire gem requires rake in non-rake task as well, so the constant is defined.
use more complex logic to determine it's really running from rake.