View Source mix waffle.g (waffle v1.1.9)

A task for generating waffle uploader modules.

If generating an uploader in a Phoenix project, your a uploader will be generated in lib/[APP_NAME]_web/uploaders/

Example

mix waffle.g avatar # creates  lib/[APP_NAME]_web/uploaders/avatar.ex

If not generating an uploader in a Phoenix project, then you must pass the path to where the uploader should be generated.

Example

mix waffle.g avatar  uploaders/avatar.ex # creates uploaders/avatar.ex

Summary

Functions

Callback implementation for Mix.Task.run/1.

Functions

Callback implementation for Mix.Task.run/1.