capistrano-bundle_rsync 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1035560b71b189869e32da1fb5b02fb8a303b3b7
4
- data.tar.gz: 7863c65ce64f61ae469996437bd85f474643c48e
3
+ metadata.gz: c90d50f28156ca6735117d30e27e8e7b314dbc58
4
+ data.tar.gz: d8316808133e0c4f0c1603814b2a456921ea747f
5
5
  SHA512:
6
- metadata.gz: d36dd1494a102cec74809a5e18e8d3c7748230094718b4e0daafca5be4a43b95045272e24d0c7d5c4d2b2a0692f8ebf7dc436277ccb9679eb7c16e7dfc4ccb93
7
- data.tar.gz: 5c10878e8c9acc5f8d975e91aad21e02e3b6158315310c624000bc8024f0112b24315720a04abbe2a5e484fc14d3732ffe08d0207c93431f1cfad748c486bc3d
6
+ metadata.gz: 4afc9dbd2074b3fcf99f7cd39e2a2b3ceee5987c3dc037c2dc6d871c6687ca035e5c6e80ced33817d3fa6df7a30e5ce3abc89156106ca6543e1a3b13a9995372
7
+ data.tar.gz: 174c5c142f974acb7eaa7b64886ee34e50ef19065f9f98178714d61bfb64cde754810b36fdd0a5f6580289a1c2b595a37ff018eaa35864aa5ea6b45411ef213e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.2.4 (2014/07/28)
2
+
3
+ Changes:
4
+
5
+ * Change process parallel to thread parallel to save memory usage as capistrano/sshkit does
6
+
1
7
  # 0.2.3 (2014/07/18)
2
8
 
3
9
  Enhancements:
data/README.md CHANGED
@@ -62,7 +62,7 @@ bundle_rsync_keep_releases | `keep_releases` | The number of releases to keep on
62
62
  bundle_rsync_max_parallels | number of hosts | Number of concurrency. The default is the number of hosts to deploy.
63
63
  bundle_rsync_rsync_bwlimit | nil | Configuration of rsync --bwlimit (KBPS) option. Not Avabile if `bundle_rsync_rsync_options` is specified.
64
64
  bundle_rsync_rsync_options | `-az --delete` | Configuration of rsync options.
65
- bundle_rsync_skip_bundle | nil | (Secret option) Do not `bundle` and rsync bundle.
65
+ bundle_rsync_skip_bundle | false | (Secret option) Do not `bundle` and rsync bundle.
66
66
 
67
67
  ## Task Orders
68
68
 
@@ -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.2.3"
7
+ spec.version = "0.2.4"
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}
@@ -28,7 +28,7 @@ BUNDLE_BIN: #{release_path.join('bin')}
28
28
  File.open(bundle_config_path, "w") {|file| file.print(lines) }
29
29
 
30
30
  rsync_options = config.rsync_options
31
- Parallel.each(hosts, in_processes: config.max_parallels(hosts)) do |host|
31
+ Parallel.each(hosts, in_threads: config.max_parallels(hosts)) do |host|
32
32
  ssh = config.build_ssh_command(host)
33
33
  if config_files = config.config_files
34
34
  config_files.each do |config_file|
@@ -31,7 +31,7 @@ class Capistrano::BundleRsync::Git < Capistrano::BundleRsync::SCM
31
31
  def rsync_release
32
32
  hosts = release_roles(:all)
33
33
  rsync_options = config.rsync_options
34
- Parallel.each(hosts, in_processes: config.max_parallels(hosts)) do |host|
34
+ Parallel.each(hosts, in_threads: config.max_parallels(hosts)) do |host|
35
35
  ssh = config.build_ssh_command(host)
36
36
  execute :rsync, "#{rsync_options} --rsh='#{ssh}' #{config.local_release_path}/ #{host}:#{release_path}/"
37
37
  end
@@ -19,7 +19,7 @@ class Capistrano::BundleRsync::LocalGit < Capistrano::BundleRsync::SCM
19
19
  def rsync_release
20
20
  hosts = release_roles(:all)
21
21
  rsync_options = config.rsync_options
22
- Parallel.each(hosts, in_processes: config.max_parallels(hosts)) do |host|
22
+ Parallel.each(hosts, in_threads: config.max_parallels(hosts)) do |host|
23
23
  ssh = config.build_ssh_command(host)
24
24
  execute :rsync, "#{rsync_options} --rsh='#{ssh}' #{repo_url}/ #{host}:#{release_path}/"
25
25
  end
@@ -66,6 +66,20 @@ class Capistrano::BundleRsync::SCM < Capistrano::BundleRsync::Base
66
66
  )
67
67
  end
68
68
 
69
+ # @abstract
70
+ #
71
+ # Rsync the contents of the release path
72
+ #
73
+ # This is an additional task endpoint provided by capistrano-bundle_rsync
74
+ #
75
+ # @return void
76
+ #
77
+ def rsync_release
78
+ raise NotImplementedError.new(
79
+ "Your SCM strategy module should provide a #rsync_release method"
80
+ )
81
+ end
82
+
69
83
  # @abstract
70
84
  #
71
85
  # Identify the SHA of the commit that will be deployed. This will most likely involve SshKit's capture method.
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.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - sonots
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-18 00:00:00.000000000 Z
12
+ date: 2014-07-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano