capistrano-data_plane_api 0.3.1 → 0.4.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
2
  SHA256:
3
- metadata.gz: 3b007210b97fd9d2a913fa596be9dcaa80b97b633be25d72c26826a2c20d16e7
4
- data.tar.gz: 9d5a433afea166d0bcb79bc69e52b3abc12e4a029441041be1903d5c6b854f34
3
+ metadata.gz: 129252a41d4e576802ee27f312f06875a71b8e9e116fe984c45d0ff4d83e0b08
4
+ data.tar.gz: f9ef93c427519821ca84336b437d3e9707992bc7550e075077c7ac42711becae
5
5
  SHA512:
6
- metadata.gz: 5e64aade9d68ee4057cfc6ae5489aba73c8d8f321270f468bb3cbac2a0544643fd3dda59830f743b7f6825c0924e707e735b54f53489c7b69988332fd580c665
7
- data.tar.gz: ff6e63899de0f78c2cf33281a07d7d086df2c81d00a65fbd8b2b8fa876bb7bca93d7c17723fec1f9b77905724ddcef2069f40f6259bdffb04506d67ad01e51b1
6
+ metadata.gz: bb2eea9deb79ac6387b2d27b988074c3e9cd13e25ce05d057af29ef135407539f0896aba1ece6c68abf48472f70778e265f0031c664d1a9bd2486c2337596898
7
+ data.tar.gz: 7f8eedc6fa57fee424309618b5f5bdba5bde4c4fb9e19fb241484e4197a013cc01365d51a0fc26f2751704bc54fc4a77598b176211be8e8aea72959ba49ff07b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.4.0] - 13.02.2026
4
+
5
+ - Add `Capistrano::DataPlaneApi::Deploy::call!` method that returns the result of the deployment
6
+
3
7
  ## [0.3.1] - 15.10.2025
4
8
 
5
9
  - Update `shale-builder`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-data_plane_api (0.3.1)
4
+ capistrano-data_plane_api (0.4.0)
5
5
  booleans (~> 0.1)
6
6
  data_plane_api (>= 0.2)
7
7
  pastel (< 1)
@@ -8,13 +8,24 @@ module Capistrano
8
8
  # Contains code used in the deployment script.
9
9
  module Deploy
10
10
  class << self
11
+ # Returns when the deployment is over.
12
+ # Aborts the program (exits with code 1) when the deployment has failed.
13
+ #
11
14
  #: -> void
12
15
  def call
16
+ result = call!
17
+ abort if result == :failed
18
+ end
19
+
20
+ # Returns when the deployment is over.
21
+ # Returns the final state of the deployment as a symbol `:failed`, `:pending` or `:success`
22
+ #
23
+ #: -> Symbol
24
+ def call!
13
25
  args = Args.parse
14
26
  puts COLORS.bold.blue('Running the deployment script')
15
27
 
16
- result = Group.call(args)
17
- abort if result == :failed
28
+ Group.call(args)
18
29
  end
19
30
  end
20
31
  end
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Capistrano
5
5
  module DataPlaneApi
6
- VERSION = '0.3.1'
6
+ VERSION = '0.4.0'
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.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Drewniak