Pepper::Commander
This package provides all the functionality for the 'pepper' command script, which allows you to configure and start/stop the Pepper Plack service.
This is the configuration mode. The Pepper workspace will be created as a 'pepper' directory within your home directory, aka $ENV{HOME}/pepper, unless it already exists. You will be prompted for the configuration options, and your configuration file will be created or overwritten.
This will perform a basic connection / query test on the database config you provided via 'pepper setup'.
This creates an endpoint mapping in Pepper to tell Plack how to dispatch incoming requests. The first argument is a URI and the second is a target Perl module for handing GET/POST requests to the URI. If these two arguments are not given, you will be prompted for the information. Use 'default' for the URI to set a default endpoint handler.
If the Perl module does not exist under $ENV{HOME}/pepper/lib, an initial version will be created.
This will output your configured endpoint mappings.
This will run Plack::Test against the URI's endpoint to see that it will return 200 OK. This is not a test of functionality, just a test that the endpoint executes and returns 200.
Removes an endpoint mapping from Pepper. The Perl module will not be deleted.
Attempts to start the Plack service. Provide an integer for the #Workers to spcify the maximum number of Plack processes to run. The default is 10.
If you indicate a number of workers plus 'dev-reload' as the third argument, Plack will be started with the auto-reload option to auto-detect changes to your code. If that is not provided, you will need to issue 'pepper restart' to put your code changes into effect. Enabling dev-reload will slow down Plack significantly, so it is only appropriate for development environments.
Restarts the Plack service and put your code changes into effect.
To install Pepper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pepper
CPAN shell
perl -MCPAN -e shell install Pepper
For more information on module installation, please visit the detailed CPAN module installation guide.