frozen_string_literal: true
CommandLineOptionError | = | Class.new(StandardError) |
EARLY | = | EarlyTime.instance |
LATE | = | LateTime.instance |
VERSION | = | "13.0.6" |
Make block_application the default rake application inside a block so you can load rakefiles into a different application.
This is useful when you want to run rake tasks inside a library without running rake in a sub-shell.
Example:
Dir.chdir 'other/directory' other_rake = Rake.with_application do |rake| rake.load_rakefile end puts other_rake.tasks