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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d60578b9f2b2882d5aecf34bf2e24b6823a46d9
4
- data.tar.gz: 71e0c5d9f1ba5885e9233cb07be72ad5357fa564
3
+ metadata.gz: bb1ffbd9aa297ef922bfb330b3ad6f97483e5e38
4
+ data.tar.gz: e74556d4bc1d4efdbf688f68e7604fae4e99f2fc
5
5
  SHA512:
6
- metadata.gz: a9db42e08f17ed65d01a48f378c9528c47fb1884e56fe8e091ef14f4068701c4344b0a00aa1203e0db4f2cf8713b371c4c06f0349ae4d2fefdaeffcd000891ec
7
- data.tar.gz: ec05e32bc13e4921268ffd079a96d1ca3bab8be526c0046899c90ba598c660b4100e5da82f7a89a63f8476860bf7d6209b68f142dd4793c24f6ab64d70caf6c7
6
+ metadata.gz: 6b006a9bb150878bef7cfb34b3cf059ddaacc8ad24c729bec8241a31a367f9f6b3a8bb57d7afcbcc9ac5b668964ccd075bb26d3ece70f185c437d9a19f6bcce9
7
+ data.tar.gz: 447b616049089a0dbb69026da720a1aadc2ce5cd2f8948e3b8507380b05f46fa6f1246d5952c416ff53ba3d763e967f1d81730ce7f1d50b294c59a5fb5bbf0d1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.4.3 (2015/03/16)
2
+
3
+ Fixes:
4
+
5
+ * Avoid possible name conflictions
6
+
1
7
  # 0.4.2 (2015/03/16)
2
8
 
3
9
  Fixes:
@@ -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.2"
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 config
8
+ def bundle_rsync_config
9
9
  Capistrano::BundleRsync::Config
10
10
  end
11
11
 
12
- def bundler
13
- @bundler ||= Capistrano::BundleRsync::Bundler.new(self)
12
+ def bundle_rsync_bundler
13
+ @bundle_rsync_bundler ||= Capistrano::BundleRsync::Bundler.new(self)
14
14
  end
15
15
 
16
- def scm
17
- @scm ||=
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 config.skip_bundle
31
+ if bundle_rsync_config.skip_bundle
32
32
  info "Skip bundle"
33
33
  else
34
- bundler.install
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 config.skip_bundle
41
+ if bundle_rsync_config.skip_bundle
42
42
  info "Skip bundle rsync"
43
43
  else
44
- bundler.rsync
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
- scm.check
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
- scm.clone
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
- scm.update
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
- scm.create_release
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
- scm.rsync_release
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
- scm.rsync_shared
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
- scm.set_current_revision
97
+ bundle_rsync_scm.set_current_revision
98
98
  end
99
99
  end
100
100
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-bundle_rsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - sonots