capistrano-hivequeen 7.4.0 → 7.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9b66d4218316f1fa5e21db271700c8c3f1b6e69312912eb106d04cecef5aa704
|
4
|
+
data.tar.gz: c2d33bdb0f6f09d376f0e5cb49f3c230507b4562fac6ce75def53f5aeb7ebe3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daf7410d13f08728bdc618bc95f79e7bf40e75af00658379e48e063970c8151ba94e0b4a16dc525e6f89bac31e991ba6858b1652a72c6d83eef1c654db00e261
|
7
|
+
data.tar.gz: cb2806cab76537e07daa39d6cdf6d3ec40d991c3eca37f6e806615fb8d4ac51d8f76744d81ea48628247899471c4e20fe4d0dd89ed492aee1a1cdaf1a2258cfd
|
@@ -15,6 +15,9 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
15
15
|
# From the command line, use -s override=true to force a deployment
|
16
16
|
set :override, false
|
17
17
|
|
18
|
+
# Don't mark deployments as canary deployments by default
|
19
|
+
set :canary, false
|
20
|
+
|
18
21
|
# Command to get the changes being deployed
|
19
22
|
set :changelog_command do
|
20
23
|
`git log #{current_commit}...#{real_revision} --pretty="%n%h %an: %s (%ar)" --stat --no-color`
|
@@ -7,6 +7,8 @@ Capistrano::Configuration.instance.load do
|
|
7
7
|
before "deploy:stage", "hivequeen:start"
|
8
8
|
before 'hivequeen:start', 'hivequeen:check_commit'
|
9
9
|
on :start, "hivequeen:require_environment", :except => HiveQueen.environment_names
|
10
|
+
on :start, "hivequeen:ensure_canary_specifies_hosts"
|
11
|
+
|
10
12
|
namespace :hivequeen do
|
11
13
|
|
12
14
|
desc "[internal] abort if no environment specified"
|
@@ -14,6 +16,14 @@ Capistrano::Configuration.instance.load do
|
|
14
16
|
abort "No environment specified." if !exists?(:environment)
|
15
17
|
end
|
16
18
|
|
19
|
+
desc "[internal] abort if we're trying to do a canary deploy but HOSTS hasn't been defined"
|
20
|
+
task :ensure_canary_specifies_hosts do
|
21
|
+
# TODO: I suppose we could randomly select instance(s) in this case
|
22
|
+
if canary && !ENV.key?('HOSTS')
|
23
|
+
abort "You asked to do a canary deployment but didn't specify any hosts! \nPlease invoke like `cap HOSTS=foo.com deploy -s canary=true'"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
17
27
|
desc "[internal] Start a deployment in hivequeen"
|
18
28
|
task :start do
|
19
29
|
# TODO: is there a better way to determine what cap tasks are running?
|
@@ -22,7 +32,8 @@ Capistrano::Configuration.instance.load do
|
|
22
32
|
params = {
|
23
33
|
:task => tasks.join(' '),
|
24
34
|
:commit => real_revision,
|
25
|
-
:override => override
|
35
|
+
:override => override,
|
36
|
+
:canary => canary,
|
26
37
|
}
|
27
38
|
|
28
39
|
if current_commit
|
@@ -44,7 +55,7 @@ Capistrano::Configuration.instance.load do
|
|
44
55
|
|
45
56
|
desc "[internal] Prompt if deploying the currently running commit, or if tests haven't passed"
|
46
57
|
task :check_commit do
|
47
|
-
if environment.to_s == 'production' && !override
|
58
|
+
if environment.to_s == 'production' && !override && !canary
|
48
59
|
if current_commit == real_revision
|
49
60
|
banner = %q{
|
50
61
|
______ _ _ _ ___
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-hivequeen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Suggs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
119
|
rubyforge_project:
|
120
|
-
rubygems_version: 2.
|
120
|
+
rubygems_version: 2.7.6
|
121
121
|
signing_key:
|
122
122
|
specification_version: 2
|
123
123
|
summary: Capistrano extensions for interacting with HiveQueen
|