~ihabunek/triglav

ref: f8f7b939d718089aa8ab1b9939d768fd7cf3a2ec triglav/lib/mix/tasks/triglav/osmosis_update.ex -rw-r--r-- 314 bytes
f8f7b939Ivan Habunek Fix flag for starting only repo 11 months 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, :repo_only, true)
    {:ok, _} = Application.ensure_all_started(:triglav)

    Triglav.Import.Osmosis.update()
  end
end