discharger 0.2.2 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/discharger/task.rb +13 -1
- data/lib/discharger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e09e709b5a48b494c2ff4f56a2643870084d6d05116a62895b6b196bd1dfe75
|
4
|
+
data.tar.gz: 68e4a01db691b65905961adbcea4230735ac09d5e4bc5d83ada4c8fa98e79288
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 052e337559ce7aece516e0acf9739f63c228b91ab078ae2ed1f9f4fadbeb4b944776296bbbb9ddca762147e3e15ba67089d9c7b35b5d36e88ea6873d0591e94c
|
7
|
+
data.tar.gz: 72a9e8403623a908e00a2356720dfdd3592e648b73d93c6b57cdeeda691b64b0289c3e8c6c1be14213118705f164d56db3e0e20b36ddea617d8f4e26bd632e7c
|
data/README.md
CHANGED
@@ -26,6 +26,7 @@ It will make Rake tasks available to push code to branches and notify Slack chan
|
|
26
26
|
$ rake -T release
|
27
27
|
rake release # ---------- STEP 3 ----------
|
28
28
|
rake release:build # Release the current version to stage
|
29
|
+
rake release:config # Echo the configuration settings
|
29
30
|
rake release:prepare # ---------- STEP 1 ----------
|
30
31
|
rake release:slack[text,channel,emoji] # Send a message to Slack
|
31
32
|
rake release:stage # ---------- STEP 2 ----------
|
data/lib/discharger/task.rb
CHANGED
@@ -147,7 +147,7 @@ module Discharger
|
|
147
147
|
["git push origin #{production_branch}:#{production_branch} v#{current_version}:v#{current_version}"],
|
148
148
|
["git push origin v#{current_version}"]
|
149
149
|
) do
|
150
|
-
tasker["#{name}:slack"].invoke("Released #{
|
150
|
+
tasker["#{name}:slack"].invoke("Released #{app_name} #{current_version} to production.", release_message_channel, ":chipmunk:")
|
151
151
|
syscall ["git checkout #{working_branch}"]
|
152
152
|
end
|
153
153
|
|
@@ -184,6 +184,18 @@ module Discharger
|
|
184
184
|
end
|
185
185
|
|
186
186
|
namespace name do
|
187
|
+
desc "Echo the configuration settings."
|
188
|
+
task :config do
|
189
|
+
sysecho "-- Discharger Configuration --".bg(:green).black
|
190
|
+
sysecho "SHA: #{commit_identifier.call}".bg(:red).black
|
191
|
+
instance_variables.sort.each do |var|
|
192
|
+
value = instance_variable_get(var)
|
193
|
+
value = value.call if value.is_a?(Proc) && value.arity.zero?
|
194
|
+
sysecho "#{var.to_s.sub("@", "").ljust(24)}: #{value}".bg(:yellow).black
|
195
|
+
end
|
196
|
+
sysecho "----------------------------------".bg(:green).black
|
197
|
+
end
|
198
|
+
|
187
199
|
desc description
|
188
200
|
task build: :environment do
|
189
201
|
syscall(
|
data/lib/discharger/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: discharger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Gay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: open3
|