capistrano-git-copy 0.8.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/capistrano/git/copy.rb +0 -1
- data/lib/capistrano/git_copy/utility.rb +3 -2
- data/lib/capistrano/git_copy/version.rb +1 -1
- metadata +2 -3
- data/lib/capistrano/git/copy/tasks/deploy.cap +0 -61
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe22bff4249501fad615b44c807017ac710441c7
|
4
|
+
data.tar.gz: 7349dd2312fe912edcfd51ef53722a358aafca62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f453b502f27a7b6d9937d766ded5904204cb6e0931417318c892dfde74c27fbd533ecfbffd2a2b957b9e85d39e2acb32a571aece49a4b7cf8b6a81179d7ac655
|
7
|
+
data.tar.gz: bc2b6b09aa257671b4acca13cb455dba60a3b7fff1b44e87ed15a7995ee23ebc1f091e8967519f115b133e33c590db8f22431b84b93e9a048b6835e25abd1dec
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## 0.
|
3
|
+
## 1.0.0 (2015-04-22)
|
4
|
+
### Fixed
|
5
|
+
- support application names with whitespaces and other non-path-friendly characters
|
6
|
+
- executing deploy/scm task twice
|
7
|
+
|
8
|
+
## 0.8.1 (2015-04-11)
|
4
9
|
### Fixed
|
5
10
|
- strip branch name only if it is a string
|
6
11
|
|
data/lib/capistrano/git/copy.rb
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
require 'capistrano/git_copy'
|
@@ -145,8 +145,9 @@ module Capistrano
|
|
145
145
|
[
|
146
146
|
fetch(:application),
|
147
147
|
fetch(:stage),
|
148
|
-
Digest::MD5.hexdigest(fetch(:repo_url))[0..7]
|
149
|
-
|
148
|
+
Digest::MD5.hexdigest(fetch(:repo_url))[0..7],
|
149
|
+
Digest::MD5.hexdigest(Dir.getwd)[0..7]
|
150
|
+
].compact.join('_').gsub(/[^\w]/, '')
|
150
151
|
end
|
151
152
|
|
152
153
|
def commit_hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-git-copy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Schwab
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -88,7 +88,6 @@ files:
|
|
88
88
|
- Rakefile
|
89
89
|
- capistrano-git-copy.gemspec
|
90
90
|
- lib/capistrano/git/copy.rb
|
91
|
-
- lib/capistrano/git/copy/tasks/deploy.cap
|
92
91
|
- lib/capistrano/git_copy.rb
|
93
92
|
- lib/capistrano/git_copy/tasks/deploy.cap
|
94
93
|
- lib/capistrano/git_copy/utility.rb
|
@@ -1,61 +0,0 @@
|
|
1
|
-
namespace :git_copy do
|
2
|
-
def git_copy_utility
|
3
|
-
@git_copy_utility ||= Capistrano::GitCopy::Utility.new(self)
|
4
|
-
end
|
5
|
-
|
6
|
-
task :wrapper do; end
|
7
|
-
|
8
|
-
desc 'Check that the repository is reachable'
|
9
|
-
task check: :'git_copy:wrapper' do
|
10
|
-
run_locally do
|
11
|
-
git_copy_utility.check
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
desc 'Clone the repo to the cache'
|
16
|
-
task clone: :'git_copy:wrapper' do
|
17
|
-
run_locally do
|
18
|
-
if git_copy_utility.test
|
19
|
-
info t(:mirror_exists, at: git_copy_utility.repo_path)
|
20
|
-
else
|
21
|
-
git_copy_utility.clone
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
desc 'Update the repo mirror to reflect the origin state'
|
27
|
-
task update: :'git_copy:clone' do
|
28
|
-
run_locally do
|
29
|
-
within git_copy_utility.repo_path do
|
30
|
-
git_copy_utility.update
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
desc 'Copy repo to releases'
|
36
|
-
task create_release: :'git_copy:update' do
|
37
|
-
run_locally do
|
38
|
-
within git_copy_utility.repo_path do
|
39
|
-
git_copy_utility.prepare_release
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
on release_roles :all do
|
44
|
-
git_copy_utility.release
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
desc 'Determine the revision that will be deployed'
|
49
|
-
task :set_current_revision do
|
50
|
-
run_locally do
|
51
|
-
set :current_revision, git_copy_utility.fetch_revision
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
desc 'Clean repo cache'
|
56
|
-
task :cleanup do
|
57
|
-
run_locally do
|
58
|
-
git_copy_utility.cleanup
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|