Current section

Files

Jump to
exalice lib tasks bootstrap.ex
Raw

lib/tasks/bootstrap.ex

defmodule Mix.Tasks.Exalice.Bootstrap do
use Mix.Task
@shortdoc "Bootstrap ExAlice"
@doc """
Bootstrap ExAlice by populating the "exalice" Elasticsearch index with sample
data
"""
def run(_) do
Mix.Task.run("app.start", [])
# FIXME: works only with fixed argument
ExAlice.Geocoder.Elastic.Import.import()
end
end