Customization
Bootleg.UI
¶
There are several built-in helpers to Bootleg that may be useful.
config/deploy.exs
use Bootleg.DSL
alias Bootleg.UI
task :foobar do
if UI.yes?("Are you sure") do
UI.info("Here we go!")
invoke :wizardry
end
end
In this case, a mix bootleg.invoke foobar
will prompt the user before invoking another task.