Current section

Files

Jump to
phx_new lib mix tasks local.phx.ex
Raw

lib/mix/tasks/local.phx.ex

defmodule Mix.Tasks.Local.Phx do
use Mix.Task
@url "https://github.com/phoenixframework/archives/raw/master/phx_new.ez"
@shortdoc "Updates the Phoenix project generator locally"
@moduledoc """
Updates the Phoenix project generator locally.
mix local.phx
Accepts the same command line options as `archive.install`.
"""
def run(args) do
Mix.Task.run "archive.install", [@url | args]
end
end