capistrano-data_plane_api 0.1.0 → 0.1.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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/capistrano/data_plane_api/tasks.rb +4 -4
- data/lib/capistrano/data_plane_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad2b996b48c5b23eea3d380344465328402767a3df12fdd7098b7d90e823d4ad
|
|
4
|
+
data.tar.gz: 2b4b549b1cefcea0a2d9065a8a394e1d205221c06b87ada49566c2218d59d2bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 31249f8526fdc7da8b31adb9a993f9193fdb1417391d27c1a0dcbeb97522743fcfdd3b4b4138aedb0d0d74d51a4e6f3c3ccb461d33de19c68828c85e80432fe8
|
|
7
|
+
data.tar.gz: e3e4ddf9f38305a4c173487e7449df301319eb733ed5451fa58afb4306a339762f4e47d04aea16306b08ff63788ff4ac36caa1206a4c5540242846d4d9f74e7e
|
data/Gemfile.lock
CHANGED
|
@@ -6,14 +6,14 @@ namespace :data_plane_api do
|
|
|
6
6
|
namespace :server do
|
|
7
7
|
desc "Set the server's admin state to DRAIN through the HAProxy Data Plane API"
|
|
8
8
|
task :set_drain do
|
|
9
|
-
next if no_haproxy?
|
|
9
|
+
next if ::Capistrano::DataPlaneApi.no_haproxy?
|
|
10
10
|
|
|
11
|
-
::Capistrano::DataPlaneApi.server_set_drain fetch(:stage), force: force_haproxy?
|
|
11
|
+
::Capistrano::DataPlaneApi.server_set_drain fetch(:stage), force: ::Capistrano::DataPlaneApi.force_haproxy?
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
desc "Set the server's admin state to READY through the HAProxy Data Plane API"
|
|
15
15
|
task :set_ready do
|
|
16
|
-
next if no_haproxy?
|
|
16
|
+
next if ::Capistrano::DataPlaneApi.no_haproxy?
|
|
17
17
|
|
|
18
18
|
sleep 3
|
|
19
19
|
::Capistrano::DataPlaneApi.server_set_ready fetch(:stage)
|
|
@@ -21,7 +21,7 @@ namespace :data_plane_api do
|
|
|
21
21
|
|
|
22
22
|
desc "Set the server's admin state to MAINT through the HAProxy Data Plane API"
|
|
23
23
|
task :set_maint do
|
|
24
|
-
next if no_haproxy?
|
|
24
|
+
next if ::Capistrano::DataPlaneApi.no_haproxy?
|
|
25
25
|
|
|
26
26
|
sleep 3
|
|
27
27
|
::Capistrano::DataPlaneApi.server_set_maint fetch(:stage), force: true
|