Mix.Generator.create_file
You're seeing just the function
create_file
, go back to Mix.Generator module for more information.
Specs
Creates a file with the given contents.
If the file already exists and the contents are not the same, it asks for user confirmation.
Options
:force
- forces creation without a shell prompt:quiet
- does not log command output
Examples
iex> Mix.Generator.create_file(".gitignore", "_build\ndeps\n")
* creating .gitignore
true