Skip to content

Commit

Permalink
got it working
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Gartmann committed Jan 12, 2015
1 parent 779d123 commit 41e0ef4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/mix/ashes.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ defmodule Mix.Ashes do
:ok
end

def make_destination_path(source_path, source_dir, target_dir, application_name) do
def make_destination_path(source_path, source_dir, target_dir, {string_to_replace, name_of_generated}) do
target_path =
source_path
|> String.replace("application_name", application_name)
|> String.replace(string_to_replace, String.downcase(name_of_generated))
|> Path.relative_to(source_dir)
Path.join(target_dir, target_path)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/mix/tasks/ashes.generate.ex
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ defmodule Mix.Tasks.Ashes.Generate do
end

defp template_dir(type) do
Application.app_dir(:phoenix, "templates/#{type}")
"#{Mix.Project.deps_path}/ashes/templates/#{type}"
end

defp insert_channel(name, module) do
Expand Down

0 comments on commit 41e0ef4

Please sign in to comment.