X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-DeploymentHandler.git;a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FDad.pm;fp=lib%2FDBIx%2FClass%2FDeploymentHandler%2FDad.pm;h=6c92ab253e7ba5db46851f236b2c187b3a1425ea;hp=1fb35204b5cb25f6c01efb8ca97fa5d3adcebee8;hb=6e2665d32fec2eb9c168202abaf45e26fa87470e;hpb=6e9a733d577c24ac4fe4569515fbf94fecf40f5c diff --git a/lib/DBIx/Class/DeploymentHandler/Dad.pm b/lib/DBIx/Class/DeploymentHandler/Dad.pm index 1fb3520..6c92ab2 100644 --- a/lib/DBIx/Class/DeploymentHandler/Dad.pm +++ b/lib/DBIx/Class/DeploymentHandler/Dad.pm @@ -3,7 +3,6 @@ package DBIx::Class::DeploymentHandler::Dad; # ABSTRACT: Parent class for DeploymentHandlers use Moose; -use Method::Signatures::Simple; require DBIx::Class::Schema; # loaded for type constraint use Carp::Clan '^DBIx::Class::DeploymentHandler'; use DBIx::Class::DeploymentHandler::Logger; @@ -41,7 +40,8 @@ has schema_version => ( sub _build_schema_version { $_[0]->schema->schema_version } -method install { +sub install { + my $self = shift; log_info { 'installing version ' . $self->to_version }; croak 'Install not possible as versions table already exists in database' if $self->version_storage_is_installed; @@ -88,7 +88,8 @@ sub downgrade { log_warn { 'no version to run downgrade' } unless $ran_once; } -method backup { +sub backup { + my $self = shift; log_info { 'backing up' }; $self->storage->backup($self->backup_directory) }