2015-05-03 2 views
3

Есть ли способ заставить Capistrano 3 напечатать имена задач, выполняемых при развертывании приложения.Выводить имена задач при развертывании с помощью Capistrano 3

E.g. Я хотел бы получить что-то вроде:

deploy:starting 
    # some commands 
    # some commands 
some_custom_task 
    # some commands 
    # some commands 
deploy:started 
    # some commands 
    # some commands 
some_another_custom_task 
    # some commands 
    # some commands 
deploy:updating 
    # some commands 
    # some commands 

Благодарности

ответ

2

старый вопрос, но то, что вы ищете --trace или -t.

С помощью док:

-t, --trace=[OUT]    Turn on invoke/execute tracing, enable full backtrace. OUT can be stderr (default) or stdout. 

Это выглядит примерно так (отрывок):

* Invoke stage (first_time) 
** Execute stage 
** Invoke load:defaults (first_time) 
** Execute load:defaults 
** Invoke rbenv:validate (first_time) 
** Execute rbenv:validate 
DEBUG [f8847463] Running /usr/bin/env [ -d ~/.rbenv/versions/2.2.3 ] as [email protected] 
DEBUG [f8847463] Command: [ -d ~/.rbenv/versions/2.2.3 ] 
DEBUG [f8847463] Finished in 3.706 seconds with exit status 0 (successful). 
** Invoke rbenv:map_bins (first_time) 
** Execute rbenv:map_bins 
** Invoke bundler:map_bins (first_time) 
** Execute bundler:map_bins 
** Invoke deploy:set_rails_env (first_time) 
** Execute deploy:set_rails_env 
** Invoke deploy:set_rails_env 
** Invoke deploy (first_time) 
** Execute deploy 
** Invoke deploy:starting (first_time) 
** Execute deploy:starting 
** Invoke deploy:check (first_time) 
** Execute deploy:check 
** Invoke git:check (first_time) 
** Invoke git:wrapper (first_time) 
** Execute git:wrapper 

Надеюсь, это поможет вам или кому-то еще.

+0

Спасибо, трассировка на самом деле делает трюк, поскольку capistrano - это всего лишь грабли. –

Смежные вопросы