Bootleg Task Providers
Sharing is a good thing. Bootleg supports loading
tasks from packages in a manner very similar to Mix.Task
.
You can create and share custom tasks by namespacing a module under Bootleg.Tasks
and passing a block of Bootleg DSL:
defmodule Bootleg.Tasks.Foo do
use Bootleg.Task do
task :foo do
IO.puts "Foo!!"
end
before_task :build, :foo
end
end
Mix.Project
dependency.
See also: Bootleg.Task for additional examples.