| 1 | package DBIx::Class::Migration::TempDirBuilder; | ||
| 2 | |||
| 3 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use File::Temp 'tempdir'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | has schema_class => ( | |
| 7 | is => 'ro', | ||
| 8 | isa => 'Str', | ||
| 9 | required => 1); | ||
| 10 | |||
| 11 | 0 | ▶ | sub build { tempdir( CLEANUP=>1 ) } |
|
Subroutine
build: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 12 | |||
| 13 | 1 | __PACKAGE__->meta->make_immutable; | |
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | DBIx::Class::Migration::TempDirBuilder - Build a tempory target_dir | ||
| 18 | |||
| 19 | =head1 SYNOPSIS | ||
| 20 | |||
| 21 | use DBIx::Class::Migration::TempDirBuilder; | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This creates your migration files in a temporary directory. This might | ||
| 26 | be useful to you for testing. Please understand that the lifespan of your | ||
| 27 | temporary directory will expire when your migration object goes out of | ||
| 28 | scope. | ||
| 29 | |||
| 30 | This probably isn't really user servicable, although if you need to make a | ||
| 31 | custom C<target_dir> builder, you could look at this for example. | ||
| 32 | |||
| 33 | =head1 SEE ALSO | ||
| 34 | |||
| 35 | L<DBIx::Class::Migration>, L<File::Temp>. | ||
| 36 | |||
| 37 | =head1 AUTHOR | ||
| 38 | |||
| 39 | See L<DBIx::Class::Migration> for author information | ||
| 40 | |||
| 41 | =head1 COPYRIGHT & LICENSE | ||
| 42 | |||
| 43 | See L<DBIx::Class::Migration> for copyright and license information | ||
| 44 | |||
| 45 | =cut | ||
| 46 | |||