cap_blue_green_deploy 1.1.2 → 1.1.3
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 +4 -0
- data/Gemfile.lock +1 -1
- data/lib/cap_blue_green_deploy/tasks.rb +3 -3
- data/lib/cap_blue_green_deploy/version.rb +1 -1
- data/spec/lib/cap_blue_green_deploy/tasks_spec.rb +9 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3c157ae31f58a6f36e6a29c62855565b80a667cb
|
|
4
|
+
data.tar.gz: b97512640082fa7ca59fa9a1d97d81bb7eb3f5de
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3bf5c4b63f66697bbfe5af1711f38da0f3a3c6e08887db4456db66873e87e7bec0499024d0d8a958a64b2f4bd2e0adf4182f1ca9f9c28bdf5e29ab4e927eba2
|
|
7
|
+
data.tar.gz: 93fb31bc90ba4781cd00fb37c1b159596673cc2e4892aac286cdd2e6ab12a6bc340f83d9636a71f574bb4a76d27c749d2eb4fa8aecb64b9fcfaaabb26bef45d9
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -23,9 +23,9 @@ module CapBlueGreenDeploy::Tasks
|
|
|
23
23
|
|
|
24
24
|
def self.load_variables config
|
|
25
25
|
config.load do
|
|
26
|
-
_cset
|
|
27
|
-
_cset
|
|
28
|
-
_cset
|
|
26
|
+
_cset(:keep_releases) { 5 }
|
|
27
|
+
_cset(:blue_green_live_dir) { "#{deploy_to}/current_live" }
|
|
28
|
+
_cset(:blue_green_previous_dir) { "#{deploy_to}/previous_live" }
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
31
|
end
|
|
@@ -106,17 +106,23 @@ describe CapBlueGreenDeploy::Tasks do
|
|
|
106
106
|
end
|
|
107
107
|
|
|
108
108
|
it "should set keep_releases variable" do
|
|
109
|
-
expect(subject).to receive(:_cset).with(:keep_releases
|
|
109
|
+
expect(subject).to receive(:_cset).with(:keep_releases) do |&arg|
|
|
110
|
+
expect(arg.call).to eql 5
|
|
111
|
+
end
|
|
110
112
|
subject.load_variables @config
|
|
111
113
|
end
|
|
112
114
|
|
|
113
115
|
it "should set blue_green_live_dir variable" do
|
|
114
|
-
expect(subject).to receive(:_cset).with(:blue_green_live_dir
|
|
116
|
+
expect(subject).to receive(:_cset).with(:blue_green_live_dir) do |&arg|
|
|
117
|
+
expect(arg.call).to eql "#{deploy_to}/current_live"
|
|
118
|
+
end
|
|
115
119
|
subject.load_variables @config
|
|
116
120
|
end
|
|
117
121
|
|
|
118
122
|
it "should set blue_green_previous_dir variable" do
|
|
119
|
-
expect(subject).to receive(:_cset).with(:blue_green_previous_dir
|
|
123
|
+
expect(subject).to receive(:_cset).with(:blue_green_previous_dir) do |&arg|
|
|
124
|
+
expect(arg.call).to eql "#{deploy_to}/previous_live"
|
|
125
|
+
end
|
|
120
126
|
subject.load_variables @config
|
|
121
127
|
end
|
|
122
128
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cap_blue_green_deploy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rafael Biriba
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-10-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|