GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Jifty::Bootstrap(3) User Contributed Perl Documentation Jifty::Bootstrap(3)

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.

 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.

Jifty::Upgrade, Jifty::Script::Schema

Jifty is Copyright 2005-2010 Best Practical Solutions, LLC. Jifty is distributed under the same terms as Perl itself.
2013-01-29 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.