View Source mix janus.gen.policy (Janus v0.1.0)
Creates a basic policy module.
$ mix janus.gen.policy [--module MODULE] [--path PATH]
Creates the following file:
lib/app_name/policy.ex
- A Janus policy module containing additional authorization helpers
options
Options
--module
- The name of the generated module, defaults toAppName.Policy
--path
- The path (including filename) for the generated module, defaults tolib/app_name/policy.ex