Sha256: cb4b49331d4ec18a7f1b024b682727e304feb98e6995baba9958f5e96a9fe9a5
Contents?: true
Size: 876 Bytes
Versions: 1
Compression:
Stored size: 876 Bytes
Contents
namespace :hg do def strategy @strategy ||= Capistrano::Hg.new(self, fetch(:hg_strategy, Capistrano::Hg::DefaultStrategy)) end desc 'Check that the repo is reachable' task :check do on release_roles :all do strategy.check end end desc 'Clone the repo to the cache' task :clone do on release_roles :all do if strategy.test info t(:mirror_exists, at: repo_path) else within deploy_path do strategy.clone end end end end desc 'Pull changes from the remote repo' task :update => :'hg:clone' do on release_roles :all do within repo_path do strategy.update end end end desc 'Copy repo to releases' task :create_release => :'hg:update' do on release_roles :all do within repo_path do strategy.release end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-3.1.0 | lib/capistrano/tasks/hg.rake |