DBIx/Class/Migration/TempDirBuilder.pm

filter: Statementstmt 88.8% 8 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 76.9% 10 / 13 CC 1 SCAR 2.9
CC
1
Cov
89%
build
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« DBIx/Class/Migration/TempDirSandboxBuilder.pm ↑ Summary DBIx/Class/Migration/SchemaLoader.pm »
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  
« DBIx/Class/Migration/TempDirSandboxBuilder.pm ↑ Summary DBIx/Class/Migration/SchemaLoader.pm »