~ihabunek/triglav

ref: d258b57bfb6e76c5182888e6382a285f576b3550 triglav/lib/mix/tasks/triglav/osmosis_update.ex -rw-r--r-- 312 bytes
d258b57bIvan Habunek Add mix tasks for osmosis a year ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
defmodule Mix.Tasks.Triglav.OsmosisUpdate do
  use Mix.Task

  @shortdoc "Updates the osmosis data to latest available."

  @impl Mix.Task
  def run(_args) do
    Application.put_env(:triglav, :minimal, true)
    {:ok, _} = Application.ensure_all_started(:triglav)

    Triglav.Import.Osmosis.update()
  end
end