mix waffle.g (waffle v1.1.5)

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

Link to this section Summary

Functions

Callback implementation for Mix.Task.run/1.

Link to this section Functions

Callback implementation for Mix.Task.run/1.