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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/capistrano/data_plane_api/deploy.rb +13 -2
- 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: 129252a41d4e576802ee27f312f06875a71b8e9e116fe984c45d0ff4d83e0b08
|
|
4
|
+
data.tar.gz: f9ef93c427519821ca84336b437d3e9707992bc7550e075077c7ac42711becae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb2eea9deb79ac6387b2d27b988074c3e9cd13e25ce05d057af29ef135407539f0896aba1ece6c68abf48472f70778e265f0031c664d1a9bd2486c2337596898
|
|
7
|
+
data.tar.gz: 7f8eedc6fa57fee424309618b5f5bdba5bde4c4fb9e19fb241484e4197a013cc01365d51a0fc26f2751704bc54fc4a77598b176211be8e8aea72959ba49ff07b
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -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
|
-
|
|
17
|
-
abort if result == :failed
|
|
28
|
+
Group.call(args)
|
|
18
29
|
end
|
|
19
30
|
end
|
|
20
31
|
end
|