1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
namespace migrate => sub {
desc 'development database';
task development => sub {
$ENV{PLACK_ENV} = 'development';
require MyApp::CLI::Migrate;
MyApp::CLI::Migrate->new->run;
};
desc 'staging database';
task staging => sub {
$ENV{PLACK_ENV} = 'staging';
require MyApp::CLI::Migrate;
MyApp::CLI::Migrate->new->run;
};
};
|