Jifty::Bootstrap - Insert initial data into your database
Jifty::Bootstrap is an abstract base class for your application's bootstrapping. Use it to set up initial data in your database when your application is first installed.
Jifty::Bootstrap
package MyApp::Bootstrap; use base 'Jifty::Bootstrap'; sub run { my $user = MyApp::CurrentUser->new( _bootstrap => 1); my $modelclass = MyApp::Model::Thingy->new(current_user => $user); $modelclass->create( name => 'Widget'); };
run is the workhorse method for the Bootstrap class. This takes care of setting up internal data structures and initializing things in an application-dependent manner.
run
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.