minicap 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/minicap.rb +3 -0
  2. metadata +3 -3
@@ -2,6 +2,7 @@ Capistrano::Configuration.instance(:must_exist).load do
2
2
  require 'capistrano/recipes/deploy/scm'
3
3
 
4
4
  set :ssh_options, {:forward_agent => true}
5
+ set :scm, :git
5
6
 
6
7
  namespace :deploy do
7
8
  desc "Set up the deployment structure"
@@ -34,8 +35,10 @@ Capistrano::Configuration.instance(:must_exist).load do
34
35
 
35
36
  desc "Does a git reset to get the repo looking like branch"
36
37
  task :update_code do
38
+ set :previous_revision, capture("cd #{deploy_to} ; git show-ref --hash --verify refs/heads/master").chomp
37
39
  run "cd #{deploy_to} ; git reset --hard origin/#{branch}"
38
40
  run "cd #{deploy_to} ; git show-ref --hash origin/#{branch} > REVISION"
41
+ set :current_revision, capture("cd #{deploy_to} ; git show-ref --hash origin/#{branch}").chomp
39
42
  end
40
43
 
41
44
  desc "Reports back on remote files that didn't come from git, or aren't ignored by git"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 5
9
- version: 1.0.5
8
+ - 6
9
+ version: 1.0.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mat Trudel
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-09 00:00:00 -05:00
17
+ date: 2010-11-10 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency