capistrano-bundle_rsync 0.3.0 → 0.3.1
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 +0 -1
- data/capistrano-bundle_rsync.gemspec +1 -1
- data/example/config/deploy.rb +2 -2
- data/lib/capistrano/bundle_rsync/config.rb +0 -5
- data/lib/capistrano/bundle_rsync/scm.rb +1 -1
- 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: ebdf49c983c8c9d0ab5e8835e9840725bd02cc91
|
4
|
+
data.tar.gz: 487dd88c565d5fce1d8c1a29d930ac1cf7fdfcf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f3b684d3a61cb297203fe35f26c473f2dbdbd7db04a925d0e182812e6f0e9d2cf68a39e9873d6b384b17557639d27a05b8b0595fa5e1dddb1730107a8e30498
|
7
|
+
data.tar.gz: 0a260218af4de74a6035cc019a3833b969383c3efb1bf65b7acaac949cf9bc2045f555e2ee0c0ce67f0f7d2d16ade97b96f07ec08936f99d485a4dc8bebfd4b6
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -63,7 +63,6 @@ bundle_rsync_rsync_bwlimit | nil | Configuration of rsync --bwlimit (KBPS) optio
|
|
63
63
|
bundle_rsync_rsync_options | `-az --delete` | Configuration of rsync options.
|
64
64
|
bundle_rsync_config_files | `nil` | Additional files to rsync. Specified files are copied into `config` directory.
|
65
65
|
bundle_rsync_shared_dirs | `nil` | Additional directories to rsync. Specified directories are copied into `shared` directory.
|
66
|
-
bundle_rsync_shared_rsync_options | `-az` | Configuration of rsync options for `config_files` and `shared_dirs`
|
67
66
|
bundle_rsync_skip_bundle | false | (Secret option) Do not `bundle` and rsync bundle.
|
68
67
|
|
69
68
|
## Task Orders
|
@@ -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.3.
|
7
|
+
spec.version = "0.3.1"
|
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}
|
data/example/config/deploy.rb
CHANGED
@@ -5,7 +5,7 @@ set :user, 'game'
|
|
5
5
|
set :ssh_options, user: ENV['USER'], keys: [File.expand_path('~/.ssh/id_rsa')]
|
6
6
|
# set :default_env, { path: "/opt/ruby/bin:$PATH" }
|
7
7
|
|
8
|
-
set :linked_dirs, %w(log tmp/pids
|
8
|
+
set :linked_dirs, %w(log tmp/pids vendor/bundle)
|
9
9
|
set :keep_releases, 5
|
10
10
|
set :rbenv_type, :user
|
11
11
|
set :rbenv_ruby, '2.1.2'
|
@@ -15,7 +15,7 @@ set :scm, :bundle_rsync
|
|
15
15
|
set :bundle_rsync_max_parallels, ENV['PARA']
|
16
16
|
set :bundle_rsync_rsync_bwlimit, ENV['BWLIMIT'] # like 20000
|
17
17
|
set :bundle_rsync_shared_dirs, File.expand_path('..', __dir__) # rsync example to shared/example
|
18
|
-
set :
|
18
|
+
set :bundle_rsync_rsync_options, "-az --delete --exclude=.git"
|
19
19
|
|
20
20
|
namespace :deploy do
|
21
21
|
desc 'Restart web application'
|
@@ -89,11 +89,6 @@ module Capistrano::BundleRsync
|
|
89
89
|
fetch(:bundle_rsync_rsync_options) || "-az --delete#{bwlimit}"
|
90
90
|
end
|
91
91
|
|
92
|
-
def self.shared_rsync_options
|
93
|
-
bwlimit = fetch(:bundle_rsync_rsync_bwlimit) ? " --bwlimit #{fetch(:bundle_rsync_rsync_bwlimit)}" : ""
|
94
|
-
fetch(:bundle_rsync_shared_rsync_options) || "-az#{bwlimit}"
|
95
|
-
end
|
96
|
-
|
97
92
|
def self.skip_bundle
|
98
93
|
fetch(:bundle_rsync_skip_bundle)
|
99
94
|
end
|
@@ -89,7 +89,7 @@ class Capistrano::BundleRsync::SCM < Capistrano::BundleRsync::Base
|
|
89
89
|
# @return void
|
90
90
|
def rsync_shared
|
91
91
|
hosts = release_roles(:all)
|
92
|
-
rsync_options = config.
|
92
|
+
rsync_options = config.rsync_options
|
93
93
|
|
94
94
|
if config_files = config.config_files
|
95
95
|
Parallel.each(hosts, in_threads: config.max_parallels(hosts)) do |host|
|