View Source mix gringotts.new (gringotts v1.1.1)
Generates a barebones implementation for a gateway.
It expects the (brand) name of the gateway as argument and we recommend that it be capitalized. This will not necessarily be the module name.
mix gringotts.new NAME [-m, --module MODULE] [-f, --file FILENAME] [--url URL]A barebones implementation of the gateway will be created along with skeleton
mock and integration tests in lib/gringotts/gateways/. The command will
prompt for the module name, and other metadata.
options
Options
Tip! You can supply the extra arguments to
gringotts.newto skip (some of) the prompts.
-m--module- The module name for the Gateway.-f--file- The filename.--url- The homepage of the gateway.
examples
Examples
mix gringotts.new FooBarThe prompts for this will be:
MODULE = "Foobar"
URL = "https://www.foobar.com"
FILENAME = "foo_bar.ex"
Link to this section Summary
Functions
Callback implementation for Mix.Task.run/1.
Link to this section Functions
Callback implementation for Mix.Task.run/1.