minicap 1.0.2 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/minicap.rb +6 -6
- metadata +3 -6
data/lib/minicap.rb
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
Capistrano::Configuration.instance(:must_exist).load do
|
2
2
|
require 'capistrano/recipes/deploy/scm'
|
3
3
|
|
4
|
-
default_run_options[:pty] = true # Needed for debian based servers
|
5
4
|
set :ssh_options, {:forward_agent => true}
|
6
|
-
|
5
|
+
|
7
6
|
namespace :deploy do
|
8
7
|
desc "Set up the deployment structure"
|
9
8
|
task :setup, :except => { :no_release => true } do
|
10
|
-
run_gregarious "
|
9
|
+
run_gregarious "git clone -q #{repository} #{deploy_to} ; true"
|
11
10
|
unversioned_dirs.each { |d| run "mkdir -p #{deploy_to + '/' + d}" } if exists? :unversioned_dirs
|
12
11
|
end
|
13
12
|
|
@@ -26,16 +25,17 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
26
25
|
|
27
26
|
desc "Aborts if remote's HEAD is different than ours"
|
28
27
|
task :check_yr_head do
|
29
|
-
remote = capture("cd #{deploy_to} ; git show-ref origin/#{branch}")
|
30
|
-
local = `git show-ref #{branch}
|
28
|
+
remote = capture("cd #{deploy_to} ; git show-ref --hash origin/#{branch}")
|
29
|
+
local = `git show-ref --hash #{branch}`
|
31
30
|
abort "It looks like you haven't pushed your changes yet. Aborting
|
32
31
|
Your HEAD is #{local[0,7]}
|
33
32
|
Their HEAD is #{remote[0,7]}" if local != remote
|
34
|
-
end
|
33
|
+
end
|
35
34
|
|
36
35
|
desc "Does a git reset to get the repo looking like branch"
|
37
36
|
task :update_code do
|
38
37
|
run "cd #{deploy_to} ; git reset --hard origin/#{branch}"
|
38
|
+
run "cd #{deploy_to} ; git show-ref --hash origin/#{branch} > REVISION"
|
39
39
|
end
|
40
40
|
|
41
41
|
desc "Reports back on remote files that didn't come from git, or aren't ignored by git"
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minicap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 19
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 1
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
8
|
+
- 4
|
9
|
+
version: 1.0.4
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Mat Trudel
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-
|
17
|
+
date: 2010-10-03 00:00:00 -04:00
|
19
18
|
default_executable:
|
20
19
|
dependencies: []
|
21
20
|
|
@@ -48,7 +47,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
48
47
|
requirements:
|
49
48
|
- - ">="
|
50
49
|
- !ruby/object:Gem::Version
|
51
|
-
hash: 3
|
52
50
|
segments:
|
53
51
|
- 0
|
54
52
|
version: "0"
|
@@ -57,7 +55,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
55
|
requirements:
|
58
56
|
- - ">="
|
59
57
|
- !ruby/object:Gem::Version
|
60
|
-
hash: 3
|
61
58
|
segments:
|
62
59
|
- 0
|
63
60
|
version: "0"
|