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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2e691da215aea4ada1334022977bd115d761094b05d308105c4ef5ca772f7ba
4
- data.tar.gz: a9aa28255523f17c93a9c4c63a127e9421215716431d16ba3701173a2a2e9941
3
+ metadata.gz: 1e09e709b5a48b494c2ff4f56a2643870084d6d05116a62895b6b196bd1dfe75
4
+ data.tar.gz: 68e4a01db691b65905961adbcea4230735ac09d5e4bc5d83ada4c8fa98e79288
5
5
  SHA512:
6
- metadata.gz: 5939a5d383a6ed2cd020d5c9e859769c5f6403fad7c3228da7c8e71ad82b2ad3709fc1c0d27e11ac897a407c557984f20b6688b87dd86b1ecba6101eeba0f867
7
- data.tar.gz: 674780767621e9a78856ac0a914634ccbed7b8f07cf8c95b7b0bf5ce33590f2b07fad19d9b5dab7dcfe6ab684a9d4bfbf7858c2f4ea796c806d1b25fe71c5022
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 ----------
@@ -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 #{Qualify.name} #{current_version} to production.", release_message_channel, ":chipmunk:")
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(
@@ -1,3 +1,3 @@
1
1
  module Discharger
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.4"
3
3
  end
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.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-09-19 00:00:00.000000000 Z
11
+ date: 2024-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: open3