capistrano-simplegit 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/capistrano-simplegit.gemspec +1 -1
- data/lib/capistrano/tasks/simplegit.rake +6 -11
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6f2185fa8df96263b510dd22c1f1dabdff174556
|
|
4
|
+
data.tar.gz: 270ccbddab8ecae86329bdb5531973f7f93a32ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 463c95ba2f610046bf8a9e6e2d393d215b49d97d124c68f9f01e2d0b156d55eb3c464d31c2f86f2eb284ac5a2d5e6a15dad6b2048e365cd8df6a74d490197fb7
|
|
7
|
+
data.tar.gz: 17fa3df66acd9063e68f091e6fced5e51dc58197182de9fc6942e45adb1c2f3b38f984526287609e504be85f7eba1e09883a190ea0ec9973253866d2f28b802a
|
|
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |spec|
|
|
5
5
|
spec.name = 'capistrano-simplegit'
|
|
6
|
-
spec.version = '0.0.
|
|
6
|
+
spec.version = '0.0.9'
|
|
7
7
|
spec.authors = ['Ross Riley']
|
|
8
8
|
spec.email = ['riley.ross@gmail.com']
|
|
9
9
|
spec.description = %q{A simple Git Deploy Command for Capistrano 3.x}
|
|
@@ -10,21 +10,16 @@ namespace :simplegit do
|
|
|
10
10
|
execute "cd #{fetch(:simplegit_deploy)} && git remote add origin #{fetch(:simplegit_repo)}"
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
begin
|
|
16
|
-
execute "cd #{fetch(:simplegit_deploy)} && git fetch"
|
|
17
|
-
rescue
|
|
13
|
+
unless test :git, :'ls-remote', fetch(:repo_url)
|
|
18
14
|
error "Unable to connect to remote repository, check your configuration, and that a valid ssh key exists for remote server."
|
|
19
|
-
exit
|
|
15
|
+
exit 1
|
|
20
16
|
end
|
|
21
17
|
|
|
22
|
-
|
|
23
|
-
execute "cd #{fetch(:simplegit_deploy)} && git
|
|
24
|
-
|
|
25
|
-
execute "
|
|
18
|
+
within fetch(:simplegit_deploy) do
|
|
19
|
+
execute "cd #{fetch(:simplegit_deploy)} && git fetch"
|
|
20
|
+
execute "git checkout -b #{fetch(:simplegit_branch)} origin/#{fetch(:simplegit_branch)}"
|
|
21
|
+
execute "git submodule update --init --recursive"
|
|
26
22
|
end
|
|
27
|
-
execute "git submodule update --init --recursive"
|
|
28
23
|
end
|
|
29
24
|
end
|
|
30
25
|
|