Sha256: e9f9826634239975d0ae82b620aede74cd55170cbc6b647a3734ca27f99597ab
Contents?: true
Size: 792 Bytes
Versions: 4
Compression:
Stored size: 792 Bytes
Contents
load File.expand_path("../tasks/git.rake", __FILE__) require 'capistrano/scm' class Capistrano::Git < Capistrano::SCM # execute git with argument in the context # def git(*args) args.unshift :git context.execute *args end # The Capistrano default strategy for git. You should want to use this. module DefaultStrategy def test test! " [ -f #{repo_path}/HEAD ] " end def check test! :git, :'ls-remote -h', repo_url end def clone git :clone, '--mirror', repo_url, repo_path end def update git :remote, :update end def release git :archive, fetch(:branch), '| tar -x -C', release_path end def fetch_revision context.capture(:git, "rev-parse --short #{fetch(:branch)}") end end end
Version data entries
4 entries across 2 versions & 2 rubygems