最近お気に入りのPerlモジュール(Daiku編)

1
cpanm Daiku
1
curl -L https://cpanmin.us | perl - App::cpanminus
1
2
3
4
desc 'install perl modules';
task install => sub {
    sh q(cpanm --with-all-features --installdeps .);
};
 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;
    };
};
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy