読者です 読者をやめる 読者になる 読者になる

naichi's lab

3日後の自分(他人)への書き置き

capistrano3、Rails関係Gemのタスク依存関係を列挙してみる

capistrano3

f:id:naichilab:20151223173926p:plain

自分用メモ

Capfileにいくつかのgemをrequireしたときに追加されるタスクのメモ

別に何するわけじゃなくcapistrano3を知るために見てみただけ。

使ったCapfile

Capfile

[A]require 'capistrano/setup'
[B]require 'capistrano/deploy'
[C]require 'capistrano/rbenv'
[D]require 'capistrano/rails'
[E]require 'capistrano3/unicorn'

列挙

% bundle exec cap production deploy --prereqs

% bundle exec cap production deploy --prereqs
[D]cap bundler:install
[D]cap bundler:map_bins
[B]cap default
[B]    deploy
[B]cap deploy
[D]cap deploy:assets:backup_manifest
[D]cap deploy:assets:precompile
[D]cap deploy:assets:restore_manifest
[B]cap deploy:check
[B]cap deploy:check:directories
[B]cap deploy:check:linked_dirs
[B]cap deploy:check:linked_files
[B]cap deploy:check:make_linked_dirs
[B]cap deploy:cleanup
[D]cap deploy:cleanup_assets
[D]    set_rails_env
[B]cap deploy:cleanup_rollback
[D]cap deploy:compile_assets
[D]    set_rails_env
[B]cap deploy:failed
[B]cap deploy:finished
[B]cap deploy:finishing
[B]cap deploy:finishing_rollback
[B]cap deploy:log_revision
[D]cap deploy:migrate
[D]    set_rails_env
[B]cap deploy:new_release_path
[D]cap deploy:normalize_assets
[D]    set_rails_env
[B]cap deploy:published
[B]cap deploy:publishing
[B]cap deploy:restart
[B]cap deploy:revert_release
[B]    rollback_release_path
[B]cap deploy:reverted
[B]cap deploy:reverting
[B]cap deploy:rollback
[D]cap deploy:rollback_assets
[D]    set_rails_env
[B]cap deploy:rollback_release_path
[B]cap deploy:set_current_revision
[D]cap deploy:set_linked_dirs
[B]cap deploy:set_previous_revision
[D]cap deploy:set_rails_env
[B]cap deploy:started
[B]cap deploy:starting
[B]cap deploy:symlink:linked_dirs
[B]cap deploy:symlink:linked_files
[B]cap deploy:symlink:release
[B]cap deploy:symlink:shared
[B]cap deploy:updated
[D]    bundler:install
[B]cap deploy:updating
[B]    new_release_path
[B]cap install
[A]cap load:defaults
[A]cap production
[C]cap rbenv:map_bins
[C]cap rbenv:validate
[E]cap unicorn:add_worker
[E]cap unicorn:duplicate
[E]cap unicorn:legacy_restart
[E]cap unicorn:reload
[E]cap unicorn:remove_worker
[E]cap unicorn:restart
[E]cap unicorn:start
[E]cap unicorn:stop