capistrano-bundle_rsync 0.4.9 → 0.5.0
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/README.md +7 -1
- data/capistrano-bundle_rsync.gemspec +1 -1
- data/example/Capfile +7 -1
- data/example/config/deploy.rb +4 -1
- data/example/config/deploy/git.rb +4 -0
- data/example/config/deploy/local_git.rb +4 -0
- data/example/config/deploy/skip_bundle.rb +4 -0
- data/lib/capistrano/bundle_rsync/plugin.rb +14 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e17c9575785e43b1b0e5cdc309f630592636bea9
|
4
|
+
data.tar.gz: 044e695958a7943a307ecc9c61ab02cdeec50fe8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b9394e3eef50ff080e8dc17c1b4b6b1925b0d56013a99871a5142fd770a05f35aa8b1fff861f0b77be598bc4ce76e33a81bfa09894360d8953a0175c55dc5fc
|
7
|
+
data.tar.gz: fd62806589fc09962c0c6913efcf2f86848a9066a4de9fb223db09c48ec2f5d7b3209191fa6a91b497187a026335b81c2b7d8d3929f6cf899e95f3aec0a4009f
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -145,8 +145,14 @@ require 'capistrano/deploy'
|
|
145
145
|
|
146
146
|
# Includes tasks from other gems included in your Gemfile
|
147
147
|
require 'capistrano/rbenv'
|
148
|
+
|
149
|
+
# capistrano-3.3.3 - 3.6.1
|
148
150
|
require 'capistrano/bundle_rsync'
|
149
151
|
|
152
|
+
# capistrano-3.7+
|
153
|
+
require 'capistrano/bundle_rsync/plugin'
|
154
|
+
install_plugin Caipstrano::BundleRsync::Plugin
|
155
|
+
|
150
156
|
# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
|
151
157
|
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
|
152
158
|
```
|
@@ -158,7 +164,7 @@ set :branch, ENV['BRANCH'] || 'master'
|
|
158
164
|
set :rbenv_type, :user
|
159
165
|
set :linked_dirs, %w(log tmp/pids tmp/cache tmp/sockets vendor/bundle tmp/run)
|
160
166
|
set :keep_releases, 5
|
161
|
-
set :scm, :bundle_rsync # Need this
|
167
|
+
set :scm, :bundle_rsync # Need this when run with capistrano-3.3.3 - 3.6.1
|
162
168
|
set :bundle_rsync_max_parallels, ENV['PARA']
|
163
169
|
set :bundle_rsync_rsync_bwlimit, ENV['BWLIMIT'] # like 20000
|
164
170
|
set :bundle_rsync_config_files, ['~/config/database.yml']
|
@@ -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.
|
7
|
+
spec.version = "0.5.0"
|
8
8
|
spec.authors = ["Naotoshi Seo", "tohae"]
|
9
9
|
spec.email = ["sonots@gmail.com", "tohaechan@gmail.com"]
|
10
10
|
spec.description = %q{Deploy an application and bundled gems via rsync}
|
data/example/Capfile
CHANGED
@@ -6,7 +6,13 @@ require 'capistrano/deploy'
|
|
6
6
|
|
7
7
|
# Includes tasks from other gems included in your Gemfile
|
8
8
|
require 'capistrano/rbenv'
|
9
|
-
|
9
|
+
|
10
|
+
if Gem::Version.new(Capistrano::VERSION) < Gem::Version.new('3.7.0')
|
11
|
+
require 'capistrano/bundle_rsync'
|
12
|
+
else
|
13
|
+
require 'capistrano/bundle_rsync/plugin'
|
14
|
+
install_plugin Capistrano::BundleRsync::Plugin
|
15
|
+
end
|
10
16
|
|
11
17
|
# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
|
12
18
|
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
|
data/example/config/deploy.rb
CHANGED
@@ -8,7 +8,10 @@ set :rbenv_type, :user
|
|
8
8
|
set :rbenv_ruby, RUBY_VERSION # '2.1.5'
|
9
9
|
set :deploy_to, "#{ENV['HOME']}/sample"
|
10
10
|
|
11
|
-
|
11
|
+
if Gem::Version.new(Capistrano::VERSION) < Gem::Version.new('3.7.0')
|
12
|
+
set :scm, :bundle_rsync
|
13
|
+
end
|
14
|
+
|
12
15
|
set :bundle_rsync_max_parallels, ENV['PARA']
|
13
16
|
set :bundle_rsync_rsync_bwlimit, ENV['BWLIMIT'] # like 20000
|
14
17
|
set :bundle_rsync_shared_dirs, File.expand_path('..', __dir__) # rsync example to shared/example
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'capistrano/bundle_rsync'
|
2
|
+
require 'capistrano/scm/plugin'
|
3
|
+
|
4
|
+
module Capistrano
|
5
|
+
module BundleRsync
|
6
|
+
class Plugin < Capistrano::SCM::Plugin
|
7
|
+
def register_hooks
|
8
|
+
after "deploy:new_release_path", "bundle_rsync:create_release"
|
9
|
+
before "deploy:check", "bundle_rsync:check"
|
10
|
+
before "deploy:set_current_revision", "bundle_rsync:set_current_revision"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
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
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-04-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
@@ -112,6 +112,7 @@ files:
|
|
112
112
|
- lib/capistrano/bundle_rsync/config.rb
|
113
113
|
- lib/capistrano/bundle_rsync/git.rb
|
114
114
|
- lib/capistrano/bundle_rsync/local_git.rb
|
115
|
+
- lib/capistrano/bundle_rsync/plugin.rb
|
115
116
|
- lib/capistrano/bundle_rsync/scm.rb
|
116
117
|
- lib/capistrano/tasks/bundle_rsync.rake
|
117
118
|
- spec/capistrano/bundle_rsync/config_spec.rb
|
@@ -136,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
137
|
version: '0'
|
137
138
|
requirements: []
|
138
139
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.
|
140
|
+
rubygems_version: 2.6.11
|
140
141
|
signing_key:
|
141
142
|
specification_version: 4
|
142
143
|
summary: Deploy an application and bundled gems via rsync.
|