capistrano 3.11.2 → 3.12.0

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
  SHA256:
3
- metadata.gz: 95cdd3d0081c24ca53799c4581d720ab56417ddfa49450575eb1e6685111f3a8
4
- data.tar.gz: d3ad3ee309f5b28d547ca66cc288cc09db552da8a1ff661b700a7c64a1301c5d
3
+ metadata.gz: 6bdccda71ba34b51e461d1f881566594d87811e392faaf5b24b0832f28e22afe
4
+ data.tar.gz: 8846c459f2962435d7e5c2738004bc8f2fe19704746be6b1d4a2b5e2dcedfcca
5
5
  SHA512:
6
- metadata.gz: 3bad690c28c420c53d86658b71ceb57dc5fda26f6d0caa4d02a3997bb523a5942698480db5c2d8b3134b439f5b7611a944c97a8000b73308a8d6119dd37dd2b5
7
- data.tar.gz: e7ba13f36a3d6cfd8654f6bfbac46f32d6c7df099eb544d265e55411a6dde3cc8a8489ba969b8691042fa1b083e173c8a62baf2533048ecc2e3d3f855343a1c4
6
+ metadata.gz: 31c2370fd55c3add4f3d28b0c16baabc09bd6b011b3d2bda973a7a7b55066944a68e9d195782f1e74828f365a09457e5366a98e32e2f7fae1503c5f5c51a89ca
7
+ data.tar.gz: ac0c93210f217c1fb48d15215a483cd7a0c7e26cacfe0d8ac8cb904acfc9f987ec2ceb0306e07a59bf5a2886fbefcadaa00a0010f9f9f46eb75160e39d8a3b20
@@ -1,6 +1,6 @@
1
1
  MIT License (MIT)
2
2
 
3
- Copyright (c) 2012-2019 Tom Clements, Lee Hambley
3
+ Copyright (c) 2012-2020 Tom Clements, Lee Hambley
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -107,7 +107,7 @@ Add Capistrano to your project's Gemfile using `require: false`:
107
107
 
108
108
  ``` ruby
109
109
  group :development do
110
- gem "capistrano", "~> 3.11", require: false
110
+ gem "capistrano", "~> 3.12", require: false
111
111
  end
112
112
  ```
113
113
 
@@ -200,7 +200,7 @@ Contributions to Capistrano, in the form of code, documentation or idea, are gla
200
200
 
201
201
  MIT License (MIT)
202
202
 
203
- Copyright (c) 2012-2019 Tom Clements, Lee Hambley
203
+ Copyright (c) 2012-2020 Tom Clements, Lee Hambley
204
204
 
205
205
  Permission is hereby granted, free of charge, to any person obtaining a copy
206
206
  of this software and associated documentation files (the "Software"), to deal
@@ -12,6 +12,6 @@
12
12
  3. Determine which would be the correct next version number according to [semver](http://semver.org/).
13
13
  4. Update the version in `./lib/capistrano/version.rb`.
14
14
  5. Update the version in the `./README.md` Gemfile example (`gem "capistrano", "~> X.Y"`).
15
- 6. Commit the `version.rb` and `README.md` changes in a single commit, the message should be "Preparing vX.Y.Z"
15
+ 6. Commit the `version.rb` and `README.md` changes in a single commit, the message should be "Release vX.Y.Z"
16
16
  7. Run `rake release`; this will tag, push to GitHub, and publish to rubygems.org.
17
17
  8. Update the draft release on the [GitHub releases page](https://github.com/capistrano/capistrano/releases) to point to the new tag and publish the release
@@ -18,6 +18,8 @@ class Capistrano::SCM::Git < Capistrano::SCM::Plugin
18
18
  git_ssh: fetch(:git_wrapper_path)
19
19
  }
20
20
  }
21
+ set_if_empty :git_max_concurrent_connections, 10
22
+ set_if_empty :git_wait_interval, 3
21
23
  end
22
24
 
23
25
  def register_hooks
@@ -4,7 +4,7 @@ git_plugin = self
4
4
  namespace :git do
5
5
  desc "Upload the git wrapper script, this script guarantees that we can script git without getting an interactive prompt"
6
6
  task :wrapper do
7
- on release_roles :all do
7
+ on release_roles(:all), in: :groups, limit: fetch(:git_max_concurrent_connections), wait: fetch(:git_wait_interval) do
8
8
  execute :mkdir, "-p", File.dirname(fetch(:git_wrapper_path)).shellescape
9
9
  upload! StringIO.new("#!/bin/sh -e\nexec /usr/bin/ssh -o PasswordAuthentication=no -o StrictHostKeyChecking=no \"$@\"\n"), fetch(:git_wrapper_path)
10
10
  execute :chmod, "700", fetch(:git_wrapper_path).shellescape
@@ -14,7 +14,7 @@ namespace :git do
14
14
  desc "Check that the repository is reachable"
15
15
  task check: :'git:wrapper' do
16
16
  fetch(:branch)
17
- on release_roles :all do
17
+ on release_roles(:all), in: :groups, limit: fetch(:git_max_concurrent_connections), wait: fetch(:git_wait_interval) do
18
18
  with fetch(:git_environmental_variables) do
19
19
  git_plugin.check_repo_is_reachable
20
20
  end
@@ -23,7 +23,7 @@ namespace :git do
23
23
 
24
24
  desc "Clone the repo to the cache"
25
25
  task clone: :'git:wrapper' do
26
- on release_roles :all do
26
+ on release_roles(:all), in: :groups, limit: fetch(:git_max_concurrent_connections), wait: fetch(:git_wait_interval) do
27
27
  if git_plugin.repo_mirror_exists?
28
28
  info t(:mirror_exists, at: repo_path)
29
29
  else
@@ -38,7 +38,7 @@ namespace :git do
38
38
 
39
39
  desc "Update the repo mirror to reflect the origin state"
40
40
  task update: :'git:clone' do
41
- on release_roles :all do
41
+ on release_roles(:all), in: :groups, limit: fetch(:git_max_concurrent_connections), wait: fetch(:git_wait_interval) do
42
42
  within repo_path do
43
43
  with fetch(:git_environmental_variables) do
44
44
  git_plugin.update_mirror
@@ -49,7 +49,7 @@ namespace :git do
49
49
 
50
50
  desc "Copy repo to releases"
51
51
  task create_release: :'git:update' do
52
- on release_roles :all do
52
+ on release_roles(:all), in: :groups, limit: fetch(:git_max_concurrent_connections), wait: fetch(:git_wait_interval) do
53
53
  with fetch(:git_environmental_variables) do
54
54
  within repo_path do
55
55
  execute :mkdir, "-p", release_path
@@ -61,7 +61,7 @@ namespace :git do
61
61
 
62
62
  desc "Determine the revision that will be deployed"
63
63
  task :set_current_revision do
64
- on release_roles :all do
64
+ on release_roles(:all), in: :groups, limit: fetch(:git_max_concurrent_connections), wait: fetch(:git_wait_interval) do
65
65
  within repo_path do
66
66
  with fetch(:git_environmental_variables) do
67
67
  set :current_revision, git_plugin.fetch_revision
@@ -1,3 +1,3 @@
1
1
  module Capistrano
2
- VERSION = "3.11.2".freeze
2
+ VERSION = "3.12.0".freeze
3
3
  end
@@ -36,6 +36,20 @@ module Capistrano
36
36
  subject.set_defaults
37
37
  expect(env.fetch(:git_wrapper_path)).to eq("/tmp/git-ssh-my_app-staging-(Git Web User) via ShipIt.sh")
38
38
  end
39
+
40
+ it "makes git_max_concurrent_connections" do
41
+ subject.set_defaults
42
+ expect(env.fetch(:git_max_concurrent_connections)).to eq(10)
43
+ env.set(:git_max_concurrent_connections, 7)
44
+ expect(env.fetch(:git_max_concurrent_connections)).to eq(7)
45
+ end
46
+
47
+ it "makes git_wait_interval" do
48
+ subject.set_defaults
49
+ expect(env.fetch(:git_wait_interval)).to eq(3)
50
+ env.set(:git_wait_interval, 5)
51
+ expect(env.fetch(:git_wait_interval)).to eq(5)
52
+ end
39
53
  end
40
54
 
41
55
  describe "#git" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.2
4
+ version: 3.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Clements
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-09-29 00:00:00.000000000 Z
12
+ date: 2020-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: airbrussh
@@ -277,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
277
277
  - !ruby/object:Gem::Version
278
278
  version: '0'
279
279
  requirements: []
280
- rubygems_version: 3.0.6
280
+ rubygems_version: 3.1.2
281
281
  signing_key:
282
282
  specification_version: 4
283
283
  summary: Capistrano - Welcome to easy deployment with Ruby over SSH