__PACKAGE__->mk_group_accessors( 'simple' => qw/config_dir
_inherited_attributes debug schema_class dumped_objects config_attrs/);
-our $VERSION = '1.001026';
+our $VERSION = '1.001027_02';
$VERSION = eval $VERSION;
do {
#read config
my $config_file = io->catfile($self->config_dir, $params->{config});
- $self->load_config_file($config_file);
+ $self->load_config_file("$config_file");
};
} elsif ($params->{all}) {
my %excludes = map {$_=>1} @{$params->{excludes}||[]};
}
$self->msg("generating fixtures");
- my $tmp_output_dir = io->dir(tempdir);;
+ my $tmp_output_dir = io->dir(tempdir);
if (-e "$tmp_output_dir") {
$self->msg("- clearing existing $tmp_output_dir");
},
catfile => sub {
my ($self, @args) = @_;
- io->catfile(@args);
+ "".io->catfile(@args);
},
catdir => sub {
my ($self, @args) = @_;
- io->catdir(@args);
+ "".io->catdir(@args);
},
};
return DBIx::Class::Exception->throw('connection details must be an arrayref');
}
$schema = $self->_generate_schema({
- ddl => $ddl_file,
+ ddl => "$ddl_file",
connection_details => delete $params->{connection_details},
%{$params}
});
$self->msg("\nimporting fixtures");
my $tmp_fixture_dir = io->dir(tempdir());
- my $version_file = io->file($fixture_dir, '_dumper_version');
my $config_set_path = io->file($fixture_dir, '_config_set');
my $config_set = -e "$config_set_path" ? do { my $VAR1; eval($config_set_path->slurp); $VAR1 } : '';
@{$config_set->{sets}}
}
-# DBIx::Class::Exception->throw('no version file found');
-# unless -e $version_file;
-
if (-e "$tmp_fixture_dir") {
$self->msg("- deleting existing temp directory $tmp_fixture_dir");
$tmp_fixture_dir->rmtree;