Phoenix v1.3.0-rc.2 Mix.Tasks.Phx.Gen.Presence

Generates a Presence tracker for your application.

mix phx.gen.presence

mix phx.gen.presence MyPresence

The only argument is the module name of the Presence tracker, which defaults to Presence.

A new file will be generated in:

  • lib/my_app/web/channels/presence.ex

Where presence.ex is the snake cased version of the module name provided.

Summary

Functions

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

Functions

run(list)

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

Callback implementation for Mix.Task.run/1.