curator v0.1.0 Mix.Tasks.Curator.Install

Install and configure Curator

mix curator.install

Optionally, you can provide a name for the users module

mix curator.install User users

The first argument is the module name followed by its plural name (used for schema).

The generated resource will contain:

  • a schema in web/models
  • a migration file for the repository
  • a curator_hooks module in the lib/otp_app
  • a session_helper in test/support
  • an error_handler in web/controllers

If you already have a model, the generated model can be skipped with --no-model.

If you already have a migration, the generated migration can be skipped with --no-migration.

If you already have a curator_hooks module, the generated hooks can be skipped with --no-hooks.

If you already have a session_helper module, it can be skipped with --no-session_helper.

If you already have a error_handler module, it can be skipped with --no-error_handler.

Summary

Functions

A task needs to implement run which receives a list of command line args

Functions

run(args)

A task needs to implement run which receives a list of command line args.

Callback implementation for Mix.Task.run/1.