Sha256: ef4fb5f2fbcb483d73e4e2805d5017fc998cf26799f5e2ed3c58189c273dd03b
Contents?: true
Size: 560 Bytes
Versions: 3
Compression:
Stored size: 560 Bytes
Contents
# frozen_string_literal: true # Capistrano plugin hook to set default values namespace :load do task :defaults do set :shared_configs_use_hooks, fetch(:shared_configs_use_hooks, true) end end # Integrate hooks into Capistrano namespace :deploy do before :starting, :add_shared_configs_hooks do invoke 'shared_configs:add_hooks' if fetch(:shared_configs_use_hooks) end end namespace :shared_configs do task :add_hooks do before 'deploy:updating', 'shared_configs:update' before 'deploy:reverting', 'shared_configs:update' end end
Version data entries
3 entries across 3 versions & 1 rubygems