capistrano-bundle_rsync 0.4.2 → 0.4.3
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/CHANGELOG.md +6 -0
- data/capistrano-bundle_rsync.gemspec +1 -1
- data/lib/capistrano/tasks/bundle_rsync.rake +16 -16
- 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: bb1ffbd9aa297ef922bfb330b3ad6f97483e5e38
|
|
4
|
+
data.tar.gz: e74556d4bc1d4efdbf688f68e7604fae4e99f2fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b006a9bb150878bef7cfb34b3cf059ddaacc8ad24c729bec8241a31a367f9f6b3a8bb57d7afcbcc9ac5b668964ccd075bb26d3ece70f185c437d9a19f6bcce9
|
|
7
|
+
data.tar.gz: 447b616049089a0dbb69026da720a1aadc2ce5cd2f8948e3b8507380b05f46fa6f1246d5952c416ff53ba3d763e967f1d81730ce7f1d50b294c59a5fb5bbf0d1
|
data/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "capistrano-bundle_rsync"
|
|
7
|
-
spec.version = "0.4.
|
|
7
|
+
spec.version = "0.4.3"
|
|
8
8
|
spec.authors = ["sonots", "tohae"]
|
|
9
9
|
spec.email = ["sonots@gmail.com", "tohaechan@gmail.com"]
|
|
10
10
|
spec.description = %q{Deploy an application and bundled gems via rsync}
|
|
@@ -5,16 +5,16 @@ require 'parallel'
|
|
|
5
5
|
require 'capistrano/bundle_rsync/bundler'
|
|
6
6
|
|
|
7
7
|
namespace :bundle_rsync do
|
|
8
|
-
def
|
|
8
|
+
def bundle_rsync_config
|
|
9
9
|
Capistrano::BundleRsync::Config
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
-
def
|
|
13
|
-
@
|
|
12
|
+
def bundle_rsync_bundler
|
|
13
|
+
@bundle_rsync_bundler ||= Capistrano::BundleRsync::Bundler.new(self)
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
def
|
|
17
|
-
@
|
|
16
|
+
def bundle_rsync_scm
|
|
17
|
+
@bundle_rsync_scm ||=
|
|
18
18
|
if fetch(:bundle_rsync_scm).to_s == 'local_git'
|
|
19
19
|
require 'capistrano/bundle_rsync/local_git'
|
|
20
20
|
set :bundle_rsync_local_release_path, repo_url
|
|
@@ -28,20 +28,20 @@ namespace :bundle_rsync do
|
|
|
28
28
|
namespace :bundler do
|
|
29
29
|
task :install do
|
|
30
30
|
run_locally do
|
|
31
|
-
if
|
|
31
|
+
if bundle_rsync_config.skip_bundle
|
|
32
32
|
info "Skip bundle"
|
|
33
33
|
else
|
|
34
|
-
|
|
34
|
+
bundle_rsync_bundler.install
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
task :rsync do
|
|
40
40
|
run_locally do
|
|
41
|
-
if
|
|
41
|
+
if bundle_rsync_config.skip_bundle
|
|
42
42
|
info "Skip bundle rsync"
|
|
43
43
|
else
|
|
44
|
-
|
|
44
|
+
bundle_rsync_bundler.rsync
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
47
|
end
|
|
@@ -50,28 +50,28 @@ namespace :bundle_rsync do
|
|
|
50
50
|
desc 'Check that the repository is reachable'
|
|
51
51
|
task :check do
|
|
52
52
|
run_locally do
|
|
53
|
-
|
|
53
|
+
bundle_rsync_scm.check
|
|
54
54
|
end
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
desc 'Clone the repo to the cache'
|
|
58
58
|
task :clone do
|
|
59
59
|
run_locally do
|
|
60
|
-
|
|
60
|
+
bundle_rsync_scm.clone
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
desc 'Update the repo mirror to reflect the origin state'
|
|
65
65
|
task update: :'bundle_rsync:clone' do
|
|
66
66
|
run_locally do
|
|
67
|
-
|
|
67
|
+
bundle_rsync_scm.update
|
|
68
68
|
end
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
desc 'Copy repo to releases'
|
|
72
72
|
task create_release: :'bundle_rsync:update' do
|
|
73
73
|
run_locally do
|
|
74
|
-
|
|
74
|
+
bundle_rsync_scm.create_release
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
|
|
@@ -79,7 +79,7 @@ namespace :bundle_rsync do
|
|
|
79
79
|
desc 'Rsync releases'
|
|
80
80
|
task :rsync_release do
|
|
81
81
|
run_locally do
|
|
82
|
-
|
|
82
|
+
bundle_rsync_scm.rsync_release
|
|
83
83
|
end
|
|
84
84
|
end
|
|
85
85
|
|
|
@@ -87,14 +87,14 @@ namespace :bundle_rsync do
|
|
|
87
87
|
desc 'Rsync shared'
|
|
88
88
|
task :rsync_shared do
|
|
89
89
|
run_locally do
|
|
90
|
-
|
|
90
|
+
bundle_rsync_scm.rsync_shared
|
|
91
91
|
end
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
desc 'Determine the revision that will be deployed'
|
|
95
95
|
task :set_current_revision do
|
|
96
96
|
run_locally do
|
|
97
|
-
|
|
97
|
+
bundle_rsync_scm.set_current_revision
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|