From: Graham Knop Date: Tue, 16 Jul 2013 16:16:13 +0000 (-0400) Subject: use tempdir from Path::Class instead of misspelled function X-Git-Tag: 1.001019~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=917e1e25614343a43a610175a4dae956efdc75ae;p=dbsrgits%2FDBIx-Class-Fixtures.git use tempdir from Path::Class instead of misspelled function --- diff --git a/lib/DBIx/Class/Fixtures.pm b/lib/DBIx/Class/Fixtures.pm index ec48ec2..17021df 100644 --- a/lib/DBIx/Class/Fixtures.pm +++ b/lib/DBIx/Class/Fixtures.pm @@ -6,7 +6,7 @@ use warnings; use DBIx::Class 0.08100; use DBIx::Class::Exception; use Class::Accessor::Grouped; -use Path::Class qw(dir file); +use Path::Class qw(dir file tempdir); use File::Spec::Functions 'catfile', 'catdir'; use Config::Any::JSON; use Data::Dump::Streamer; @@ -18,7 +18,6 @@ use Hash::Merge qw( merge ); use Data::Dumper; use Class::C3::Componentised; use MIME::Base64; -use File::Temp qw/tempdir/; use base qw(Class::Accessor::Grouped); @@ -629,7 +628,7 @@ sub dump { } $self->msg("generating fixtures"); - my $tmp_output_dir = dir(tmpdir()); + my $tmp_output_dir = tempdir(); if (-e $tmp_output_dir) { $self->msg("- clearing existing $tmp_output_dir"); @@ -1271,7 +1270,7 @@ sub populate { return 1 if $params->{no_populate}; $self->msg("\nimporting fixtures"); - my $tmp_fixture_dir = dir(tmpdir()); + my $tmp_fixture_dir = tempdir(); my $version_file = file($fixture_dir, '_dumper_version'); my $config_set_path = file($fixture_dir, '_config_set'); my $config_set = -e $config_set_path ? do { my $VAR1; eval($config_set_path->slurp); $VAR1 } : '';