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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f09bc2341ac4e11146025f5ec2fb4dac89fe856ccfa94943487af17dcc63b5f5
4
- data.tar.gz: 20cf62b4bbce05fbc1fc9fe8fef6a85fb23ebcd121d5caa8783620a590eb336d
3
+ metadata.gz: ad2b996b48c5b23eea3d380344465328402767a3df12fdd7098b7d90e823d4ad
4
+ data.tar.gz: 2b4b549b1cefcea0a2d9065a8a394e1d205221c06b87ada49566c2218d59d2bb
5
5
  SHA512:
6
- metadata.gz: ba8c47106b3f124602eb6d6214cabc918c4aadc4cba6bd29b799453416d904b4dfb82f835fdd8eee64fabac28c55900f3dfe1c6987bdb53406801d7b8b6ff6b5
7
- data.tar.gz: df2302167edfec625fbe2edc5221187025255a24263e1c481f19d130713d20767fd11ec6979b06f9cd5a4f39fb92f56eb715ff4e14d12f960f6ef09ecd77e5c4
6
+ metadata.gz: 31249f8526fdc7da8b31adb9a993f9193fdb1417391d27c1a0dcbeb97522743fcfdd3b4b4138aedb0d0d74d51a4e6f3c3ccb461d33de19c68828c85e80432fe8
7
+ data.tar.gz: e3e4ddf9f38305a4c173487e7449df301319eb733ed5451fa58afb4306a339762f4e47d04aea16306b08ff63788ff4ac36caa1206a4c5540242846d4d9f74e7e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-data_plane_api (0.1.0)
4
+ capistrano-data_plane_api (0.1.1)
5
5
  data_plane_api (~> 0.1)
6
6
  pastel (< 1)
7
7
  shale (< 1)
@@ -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
@@ -3,6 +3,6 @@
3
3
  module Capistrano
4
4
  module DataPlaneApi
5
5
  # @return [String]
6
- VERSION = '0.1.0'
6
+ VERSION = '0.1.1'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-data_plane_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Drewniak