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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3209e919d097ba80a9ddd2a7f4205c2a41023dc1
4
- data.tar.gz: 4f363c2b1a83d843e628a6f759a1addee96271db
3
+ metadata.gz: ebdf49c983c8c9d0ab5e8835e9840725bd02cc91
4
+ data.tar.gz: 487dd88c565d5fce1d8c1a29d930ac1cf7fdfcf3
5
5
  SHA512:
6
- metadata.gz: 7e7c413b7fad51f4825b96f425d29b7b3e57767e91abbc16066fe7494c2145d9098acaec65302ae754a7a1cf8d5c03db94f1308b3c8c4b4312d9a0bfca5e8e8a
7
- data.tar.gz: 73055daeb8fb33c8193969d108b24919c7bdea7324d5cd0ceea8e8d214834d3a36cf07640bf2be4f2bcb508ebd0150aa6cd81559cb7dd339ed49d220248d5f2c
6
+ metadata.gz: 5f3b684d3a61cb297203fe35f26c473f2dbdbd7db04a925d0e182812e6f0e9d2cf68a39e9873d6b384b17557639d27a05b8b0595fa5e1dddb1730107a8e30498
7
+ data.tar.gz: 0a260218af4de74a6035cc019a3833b969383c3efb1bf65b7acaac949cf9bc2045f555e2ee0c0ce67f0f7d2d16ade97b96f07ec08936f99d485a4dc8bebfd4b6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.3.1 (2014/08/05)
2
+
3
+ Changes:
4
+
5
+ * Remove `bundle_rsync_shared_rsync_options` to reduce complexity
6
+
1
7
  # 0.3.0 (2014/08/05)
2
8
 
3
9
  Enhancements:
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.0"
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}
@@ -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 tmp/cache tmp/sockets vendor/bundle public/system tmp/run)
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 :bundle_rsync_shared_rsync_options, "-az --delete --exclude=Capfile"
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.shared_rsync_options
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|
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.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sonots