power_stencil 0.4.19 → 0.4.20

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
  SHA1:
3
- metadata.gz: 9e3d1927e39aa8060f7d38ce99b83f28ff6ef4aa
4
- data.tar.gz: 9cfd4aeae7c9dbca4ebd76f51d61089df0521f68
3
+ metadata.gz: e2582b92f3e64dba5535548383200c900db71ea5
4
+ data.tar.gz: 52cd784e7160cf2d580c86a06999e6bab6c8b0d1
5
5
  SHA512:
6
- metadata.gz: 2168d96b8d1a52ebc324b7931b59d712d364e3e352a7fd573743cb718fb835b88d92926172c9aca316e0743436c04eba1c6cb032914c8fced3a702ed4cc23cc3
7
- data.tar.gz: b729958fc82e4dddc9f7180ca3198aabf32bc1475c61ad4258674db055d2df1af8b7c1432a9e34c79560419ca1137ab53c8b853e0a4e10cac8e5847766da08a1
6
+ metadata.gz: 8df322c9851a1126691cea6a7c9b2fb66dad309845b63073625ad392319c0d9221eb98f73401a5cbfe4b04bfd654d87c9dc83e281477317b82071938f33bb802
7
+ data.tar.gz: 3a141b9153a9d25ef54eaa8a581b64585961a9954508f8cd75631c399e7f73914af2d4e0f1b673ae16c4a7728f033b924210a28d4d3065ea64d25744439c5246
@@ -189,6 +189,13 @@
189
189
  :options:
190
190
  regexp:
191
191
  <<: *REGEXPOPT
192
+ invalid-only:
193
+ :type: boolean
194
+ :summary: Show invalid entities only.
195
+ :long_aliases:
196
+ - invalid
197
+ :short_aliases:
198
+ - i
192
199
  create:
193
200
  :banner: |
194
201
  Creates entities in the repository.
@@ -9,23 +9,25 @@ module PowerStencil
9
9
  include PowerStencil::CommandProcessors::EntityHelper
10
10
 
11
11
  def execute
12
- puts 'RAW ENTITIES'
13
12
  targets = targets_from_criteria analyse_extra_params, project.engine.root_universe
14
- targets.sort {|a,b| a.as_path <=> b.as_path }
15
- .map do |entity|
13
+ sorted_targets = targets.sort {|a,b| a.as_path <=> b.as_path }
14
+ if config[:'invalid-only']
15
+ sorted_targets.reject! &:valid?
16
+ if sorted_targets.empty?
17
+ puts 'No invalid entity found in this repository.'
18
+ return
19
+ else
20
+ puts 'Showing invalid entities only:'
21
+ end
22
+ end
23
+ sorted_targets.map do |entity|
16
24
  entity_info = [" '#{entity.as_path}':"]
17
25
  entity_info << " - Storage path : '#{entity.source_uri}'"
18
26
  entity_info << " - Templates path : '#{entity.templates_path}'" if entity.respond_to? :templates_path
19
27
  entity_info << " - Status : #{entity.valid? ? 'Valid' : 'INVALID !'} "
20
28
  entity_info << " - Buildable : #{entity.buildable?}"
21
29
  entity_info
22
- end .each { |l| puts l }
23
-
24
-
25
- #
26
- # targets.map do |entity|
27
- # " - '#{entity.as_path}': '#{entity.source_uri}'"
28
- # end .sort.each { |l| puts l }
30
+ end .each { |entity_info| puts entity_info }
29
31
  end
30
32
 
31
33
 
@@ -1,3 +1,3 @@
1
1
  module PowerStencil
2
- VERSION = '0.4.19'.freeze
2
+ VERSION = '0.4.20'.freeze
3
3
  end
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
 
28
28
  spec.add_dependency 'climatic', '~> 0.2.29'
29
29
  spec.add_dependency 'dir_glob_ignore', '~> 0.3'
30
- spec.add_dependency 'universe_compiler', '~> 0.4.3'
30
+ spec.add_dependency 'universe_compiler', '~> 0.5.1'
31
31
  spec.add_dependency 'pry'
32
32
 
33
33
  source_code_uri = 'https://gitlab.com/tools4devops/power_stencil'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power_stencil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.19
4
+ version: 0.4.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent Briais
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-09 00:00:00.000000000 Z
11
+ date: 2019-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.4.3
89
+ version: 0.5.1
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.4.3
96
+ version: 0.5.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: pry
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -261,7 +261,7 @@ metadata:
261
261
  documentation_uri: https://gitlab.com/tools4devops/power_stencil/blob/master/README.md
262
262
  source_code_uri: https://gitlab.com/tools4devops/power_stencil
263
263
  homepage_uri: https://powerstencil.brizone.org/
264
- post_install_message: "\nThank you for installing PowerStencil 0.4.19 !\nFrom the
264
+ post_install_message: "\nThank you for installing PowerStencil 0.4.20 !\nFrom the
265
265
  command line you can run `power_stencil --help`\nIf your shell is not completing
266
266
  the command:\n If you use rbenv: `rbenv rehash`\n If you use zsh : `rehash`\n\nOfficial
267
267
  Website : https://powerstencil.brizone.org/\nFull documentation here :