Generate
Create a new Pundit policy.
Command
$ eucalypt security policy generate
# Alias/shortened
$ eucalypt s policy generate
$ eucalypt s policy gArguments
[NAME]- The name of the policy.
Options/flags
--headlessalias-H, (Default: False)Specify whether or not to generate a headless policy (a policy which does not have a corresponding model).
--permissionsalias-pPermissions to generate along with the policy.
Examples
$ eucalypt s policy g productGenerate a
productpolicy with default options.$ eucalypt s policy g post -HGenerate a headless
postpolicy.$ eucalypt s policy g product -p add edit deleteGenerate a
productpolicy with permissions toadd,editanddelete.$ eucalypt s policy g post -Hp create edit deleteGenerate a headless
postpolicy with permissions tocreate,editanddelete.
Last updated