pachanga / lib-taskman Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/lib-taskman
Automatically exported from code.google.com/p/lib-taskman
В том же constrictor у нас есть несколько тасков,
которые требуют после себя уборки.
Соответственно хочется иметь возможность
в самом таске указать, что после него надо
убраться. Только не знаю, как его обозвать.
Deps_after?
Original issue reported on code.google.com by [email protected]
on 14 Oct 2010 at 1:16
Самый простой способ определения - по
значению возврата. True === onsuccess, false === onfailure
Original issue reported on code.google.com by [email protected]
on 14 Oct 2010 at 1:27
<?php
require(dirname(__FILE__) . '/taskman.inc.php');
taskman_run($argv);
/**
* @deps get_sources, run_tests
* @alias make
* @desc Деплой проекта на рабочий сервер
*/
function task_build() {}
/**
* @desc Получение исходного кода
*/
function task_get_sources() {}
/**
* @desc Тестирование
*/
function task_run_tests() {}
/**
* @after get_sources,run_tests
* @desc Чистка рабочей копии
*/
function task_cleanup() {}
Вывод:
php ./test.php build
************************ Running task 'get_sources' ************************
************************* 'get_sources' done (0 sec.)*************************
Fatal error: Uncaught TaskmanException 'Task with name/alias '' does not exist'
in /www/taskman/taskman.inc.php(436)
#0 /www/taskman/taskman.inc.php(463): taskman_gettask('')
#1 /www/taskman/taskman.inc.php(477): taskman_runtask('', Array)
#2 /www/taskman/taskman.inc.php(97): taskman_runtasks(Array, Array)
#3 /www/taskman/taskman.inc.php(465): TaskmanTask->run(Array)
#4 /www/taskman/taskman.inc.php(479): taskman_runtask('build', Array)
#5 /www/taskman/taskman.inc.php(285): taskman_runtasks(Array, Array)
#6 /www/taskman/test.php(3): taskman_run(Array)
#7 {main}
tasks:
thrown in /www/taskman/taskman.inc.php on line 436
Original issue reported on code.google.com by [email protected]
on 14 Oct 2010 at 6:03
Сабж
Original issue reported on code.google.com by [email protected]
on 14 Oct 2010 at 6:01
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.