From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

JiftyX::Fixtures - Insert fixtures into your Jifty application database

VERSION

version 0.07

SYNOPSIS

JiftyX::Fixtures->new->config(
fixtures => [
development => {
dir => "etc/fixtures/development"
}
]
)->run;

DESCRIPTION

WARNING: This software is stil in alpha stage, any intense variation is possible.

Load pre-defined fixture from specified mode, and Insert it into you Jifty application database.

AUTHOR

shelling <shelling@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2009 by <shelling@cpan.org>.

This is free software, licensed under:

The MIT (X11) License

METHODS

new

Constructor, invoke without args

config

Give one arg which is selected from "app_root", "framework", "fixtures" to get the configuration detail.

Append second arg to set the configuration.

$jf->config("fixtures"); #=> [ development => { dir => "etc/fixtures/development" },
test => { dir => "etc/fixtures/test" } ]
$jf->config(
fixtures => [
development => {
dir => "etc/dev_fixtures"
},
test => {
dir => "etc/test_fixtures"
}
]
);

run

Running subcommand, default is "load". Give one arg to specify which subcommand would be run.