| 1 | package App::Sandy::Command::Expression::Restore; | ||
| 2 | # ABSTRACT: expression subcommand class. Restore database. | ||
| 3 | |||
| 4 | 1 | ▶ | use App::Sandy::Base 'class'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | extends 'App::Sandy::Command::Expression'; | ||
| 7 | |||
| 8 | our $VERSION = '0.25'; # VERSION | ||
| 9 | |||
| 10 | override 'opt_spec' => sub { | ||
| 11 | super, | ||
| 12 | 'verbose|v' | ||
| 13 | }; | ||
| 14 | |||
| 15 | sub validate_args { | ||
| 16 | my ($self, $args) = @_; | ||
| 17 | die "Too many arguments: '@$args'\n" if @$args; | ||
| 18 | } | ||
| 19 | |||
| 20 | sub execute { | ||
| 21 | my ($self, $opts, $args) = @_; | ||
| 22 | $LOG_VERBOSE = exists $opts->{verbose} ? $opts->{verbose} : 0; | ||
| 23 | log_msg ":: Restoring expression-matrix database to vendor state ..."; | ||
| 24 | $self->restoredb; | ||
| 25 | log_msg ":: Done!"; | ||
| 26 | } | ||
| 27 | |||
| 28 | __END__ | ||