Phoenix v1.3.0-rc.2 Mix.Tasks.Phoenix.Gen.Channel

Generates a Phoenix channel.

mix phoenix.gen.channel Room

Accepts the module name for the channel

The generated model will contain:

  • a channel in web/channels
  • a channel_test in test/channels

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.