capistrano-redmine-deployment 1.2.0 → 1.2.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8e5b503dd2ed090f4e55888e0ff5f2d7cfa8379b042a7ad0a93f83753e49e05f
|
|
4
|
+
data.tar.gz: 9a3c275c8fcb7496c0558f836f4b59762dabdee0c563e03821af18f0f110be79
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 20c4e9147ffc279dc29f0037846e18cfab6604caa5d1792f6fe450247ad31335c5d528b7b7e000014b82e7870116089407756faa352ee0ecd0e1473660cd1166
|
|
7
|
+
data.tar.gz: 4000c73ce5970b91fc125f24fe3f83abec6b4ddf0cfc18569b0ace547cc849fe9bdf56d3efb33dc1e3f235cf70ef2c5666f012d56ab922aa26a8fd839f608e06
|
data/docs/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Capistrano::Redmine::Deployment - CHANGELOG
|
|
2
2
|
|
|
3
|
+
## [1.2.1] - 2026-07-11
|
|
4
|
+
**[add]** `redmine:verify` task to validate deployment config using `deploy.rb` settings
|
|
5
|
+
|
|
3
6
|
## [1.2.0] - 2026-07-10
|
|
4
7
|
* **[add]** `redmine:verify` capistrano task to verify config & access by receiving a single deployment
|
|
5
8
|
* **[add]** `Client#receive_deployment` (and `Client.receive_deployment`) - GETs a single deployment entry; an empty (no entries) 2xx response is still treated as valid
|
|
@@ -71,4 +71,30 @@ namespace :redmine do
|
|
|
71
71
|
Capistrano::Redmine::Deployment::Client.deploy_fail!(config, deployment)
|
|
72
72
|
end
|
|
73
73
|
end
|
|
74
|
+
|
|
75
|
+
desc "Verifies your redmine deployment configuration & access (honors config/deploy.rb)"
|
|
76
|
+
task :verify do
|
|
77
|
+
run_locally do
|
|
78
|
+
# resolve redmine config - `capistrano: self` pulls the shared
|
|
79
|
+
# `set(:redmine_host, ...)` values from config/deploy.rb, then `.redmine`
|
|
80
|
+
# files and ENV win over them.
|
|
81
|
+
config = Capistrano::Redmine::Deployment::Config.resolve(capistrano: self)
|
|
82
|
+
|
|
83
|
+
unless config.valid?
|
|
84
|
+
puts "\e[31m Seems like your redmine configuration is missing or unfinished.\n Run rake task 'rake capistrano:redmine:deployment:setup' to start.\n Skipping redmine verification.\e[0m"
|
|
85
|
+
next
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# An empty result (no deployments logged yet) is fine - `false` means the
|
|
89
|
+
# request itself failed (unreachable host, bad credentials, wrong project/repo).
|
|
90
|
+
result = Capistrano::Redmine::Deployment::Client.receive_deployment(config)
|
|
91
|
+
|
|
92
|
+
puts ""
|
|
93
|
+
if result == false
|
|
94
|
+
puts "\e[31mVerification FAILED. Check host, project, repository and api_key.\e[0m"
|
|
95
|
+
else
|
|
96
|
+
puts "\e[32mVerification succeeded.\e[0m"
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
74
100
|
end
|
|
@@ -22,6 +22,10 @@ Verify the redmine credentials & access for deployment.
|
|
|
22
22
|
puts " Shared settings are resolved from ENV or the '.redmine' file (host, project,"
|
|
23
23
|
puts " repository, api_key). Run 'rake capistrano:redmine:deployment:setup' to configure them."
|
|
24
24
|
puts ""
|
|
25
|
+
puts " NOTE: this rake task has no Capistrano context, so 'set(:redmine_host, ...)'"
|
|
26
|
+
puts " values from config/deploy.rb are NOT seen here. To verify using deploy.rb"
|
|
27
|
+
puts " settings, run the stage-aware task instead: cap <stage> redmine:verify"
|
|
28
|
+
puts ""
|
|
25
29
|
puts "******************************************************************************************************"
|
|
26
30
|
puts ""
|
|
27
31
|
puts ""
|
|
@@ -30,6 +34,7 @@ Verify the redmine credentials & access for deployment.
|
|
|
30
34
|
|
|
31
35
|
unless config.valid?
|
|
32
36
|
puts "\e[31mYour redmine configuration is missing or unfinished.\e[0m"
|
|
37
|
+
puts "Run 'cap <stage> redmine:verify' to verify the stage-aware config."
|
|
33
38
|
puts "Run 'rake capistrano:redmine:deployment:setup' to configure the credentials."
|
|
34
39
|
puts ""
|
|
35
40
|
puts "******************************************************************************************************"
|