mirror of
https://github.com/ash-project/igniter.git
synced 2024-09-19 13:02:51 +12:00
This commit is contained in:
parent
2d04897e1a
commit
4d80d01be5
2 changed files with 8 additions and 1 deletions
|
@ -459,7 +459,6 @@ defmodule Igniter do
|
||||||
|> Rewrite.Source.update(:file_creator, :content, contents)
|
|> Rewrite.Source.update(:file_creator, :content, contents)
|
||||||
|
|
||||||
if has_source? do
|
if has_source? do
|
||||||
IO.inspect(opts)
|
|
||||||
{already_exists(igniter, path, Keyword.get(opts, :on_exists, :error)), source}
|
{already_exists(igniter, path, Keyword.get(opts, :on_exists, :error)), source}
|
||||||
else
|
else
|
||||||
{igniter, source}
|
{igniter, source}
|
||||||
|
|
|
@ -1,6 +1,14 @@
|
||||||
defmodule Igniter.Libs.Phoenix do
|
defmodule Igniter.Libs.Phoenix do
|
||||||
@moduledoc "Codemods & utilities for working with Phoenix"
|
@moduledoc "Codemods & utilities for working with Phoenix"
|
||||||
|
|
||||||
|
@doc """
|
||||||
|
Returns the web module name for the current app
|
||||||
|
"""
|
||||||
|
@spec web_module_name() :: module()
|
||||||
|
def web_module_name do
|
||||||
|
Module.concat([inspect(Igniter.Code.Module.module_name_prefix()) <> "Web"])
|
||||||
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Generates a module name that lives in the Web directory of the current app.
|
Generates a module name that lives in the Web directory of the current app.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue