/usr/share/perl5/Jifty/Bootstrap.pm is in libjifty-perl 1.10518+dfsg-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | use warnings;
use strict;
package Jifty::Bootstrap;
use base qw/Jifty::Object/;
=head1 NAME
Jifty::Bootstrap - Insert initial data into your database
=head1 DESCRIPTION
C<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.
=head1 EXAMPLE
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');
};
=head2 run
C<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.
=cut
sub run {
1;
}
=head1 SEE ALSO
L<Jifty::Upgrade>, L<Jifty::Script::Schema>
=head1 LICENSE
Jifty is Copyright 2005-2010 Best Practical Solutions, LLC.
Jifty is distributed under the same terms as Perl itself.
=cut
1;
|