~ihabunek/triglav

ref: 26f2c3b921aea5c0e33d1f7c4320e9e6ceb08ea0 triglav/lib/mix/tasks/triglav/osmosis_update.ex -rw-r--r-- 319 bytes
26f2c3b9Ivan Habunek Calculate and store derived data for public transport 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
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)
    :ok = Triglav.Import.Osmosis.update()
  end
end