Sha256: 83579b53f5022ec7bf80f39c51c9e8fe4821fc1888cfeda3cafef1a412d5250f
Contents?: true
Size: 759 Bytes
Versions: 1
Compression:
Stored size: 759 Bytes
Contents
namespace :local do def strategy strategies = {:default=>Capistrano::Local::DefaultStrategy, :archive=>Capistrano::Local::ArchiveStrategy} m = fetch(:local_strategy ? :local_strategy : :default) unless m.is_a?(Module) abort "Invalid local_strategy: " + m.to_s unless strategies.include?(m) m = strategies[m] end @local_strategy ||= Capistrano::Local.new(self, m) end desc 'Check that the source is reachable' task :check do run_locally do exit 1 unless local_strategy.check end end desc 'Copy repo to releases' task :create_release do on release_roles :all do within releases_path do execute :mkdir, '-p', release_path end end local_strategy.release end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-scm-local-0.1.5 | lib/capistrano/tasks/scm-local.rake |