eco-rake 0.2.18 → 0.2.20

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: 7876dd36735ea99fcb006628a2f8fe2c49c05115befe40f64ac82337a9851b29
4
- data.tar.gz: 17042f197a6535f2f33f2ebc0ff3de57d0628c4eef561340e443c1a43f7d5c3d
3
+ metadata.gz: 394de6a4146294c28d6fccabb450b6a47caf4da8d6fa22ec7270b18252c23f82
4
+ data.tar.gz: b4c8306ab0ab9e200e8511b8a4947fecce819b5bb0f20b630b8ab765bc406bd7
5
5
  SHA512:
6
- metadata.gz: f3932c8e52dc30e19b2f12292fe6349974a33136622a6ba4165e2e8c2096b9bffbabca76f8c50fa1373101a9180c179e58d8866cc82559b2340a373620c66251
7
- data.tar.gz: 1afc961abec0938ea8d4007cb644d7adb8ec21b01f166769e75ed7458f50441777763cb49f1c299ab31a23673770aedb814120d8564adcc3af98570aca5e4ffe
6
+ metadata.gz: ab8d7218adacc15fb4d7abe3dc7c259c75ead15544e3c7d4666e22a06118ff0ff1205e900dc728715356e7f40b0a491f7597cec1d37ff3a13c776ec113f8da01
7
+ data.tar.gz: a71fe6852ea2c8d0d612cf1a659bfd412e07eaebbb256c3922052913df6796f957ba4d27d167d83fd355a0eec8177016ec8dbe16f8b537b94c7620535625c41b
data/CHANGELOG.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
- ## [0.2.18] - 2025-03-xx
5
+ ## [0.2.20] - 2025-03-xx
6
6
 
7
7
  ### Added
8
8
 
@@ -10,6 +10,19 @@ All notable changes to this project will be documented in this file.
10
10
 
11
11
  ### Fixed
12
12
 
13
+ ## [0.2.20] - 2025-03-26
14
+
15
+ ### Added
16
+
17
+ - `export:payload`
18
+ - added `-get-people` stage
19
+
20
+ ## [0.2.19] - 2025-03-22
21
+
22
+ ### Changed
23
+
24
+ - `subtask` names to have an alternative substitution from `-` to `_` for method names compatiblity
25
+
13
26
  ## [0.2.18] - 2025-03-22
14
27
 
15
28
  ### Changed
@@ -30,6 +30,8 @@ class EcoRake
30
30
  str_desc = 'Target space of the envionment (i.e. uat)'
31
31
  option '-w', '--space SPACE', String, desc: str_desc
32
32
 
33
+ option '-n', '--no-get', FalseClass, desc: 'Skip get people step'
34
+
33
35
  str_desc = 'If the PAYLOAD file is a full file (false: means delta)'
34
36
  option '-f', '--[no-]full', TrueClass, default: false, desc: str_desc
35
37
 
@@ -46,6 +48,8 @@ class EcoRake
46
48
  option_forwarding(**FORWARD_RULES)
47
49
 
48
50
  def task(*_args)
51
+ sh_exit_on_fail people_get_command unless options[:no_get]
52
+
49
53
  sh_chain(commands) do |ok, res|
50
54
  next if ok
51
55
 
@@ -133,6 +137,10 @@ class EcoRake
133
137
 
134
138
  exit 1
135
139
  end
140
+
141
+ def people_get_command
142
+ string_cmd(ruby_runner, *forward_options(:enviro, :space), '-get-people')
143
+ end
136
144
  end
137
145
  end
138
146
  end
@@ -62,10 +62,16 @@ class EcoRake
62
62
 
63
63
  def target_subtask
64
64
  subtask_name = options[:task].to_sym
65
- self.class.subtasks[subtask_name].tap do |ts|
65
+ alt_name = subtask_name.to_s.gsub('-', '_').to_sym
66
+
67
+ subtasks = self.class.subtasks
68
+ subtasks.values_at(subtask_name, alt_name).compact.first.tap do |ts|
66
69
  next if ts
67
70
 
68
- raise "Couldn't find any (sub)task named '#{subtask_name}'"
71
+ msg = "Couldn't find any (sub)task named '#{subtask_name}'"
72
+ msg << " (#{alt_name})" unless alt_name == subtask_name
73
+
74
+ raise msg
69
75
  end
70
76
  end
71
77
 
@@ -1,5 +1,5 @@
1
1
  require 'rake-commander'
2
2
 
3
3
  class EcoRake < RakeCommander
4
- VERSION = '0.2.18'.freeze
4
+ VERSION = '0.2.20'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eco-rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.18
4
+ version: 0.2.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura Samper
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-21 00:00:00.000000000 Z
11
+ date: 2025-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake