power_stencil 0.4.21 → 0.4.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/entities.md +3 -0
- data/lib/power_stencil/command_processors/entity_helper.rb +1 -1
- data/lib/power_stencil/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcff3f9db26f866b680b0d921322ca428fc8aede
|
4
|
+
data.tar.gz: c29b1204719154c0b280f762e9d280c5c905cdf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c46e4de0d2710cf097e500c2f4b891a93f8e1bb84e85eeb0295432334a54f82bd14723bc0a9b02671525eaa55875f391c59d255313b64f8c15d0b0d592db6fe2
|
7
|
+
data.tar.gz: 73f1b29b4d37caa7122a48f4a9e38d8f93007a0f4701697104c2ac4d112978349e0ef554882cc8d42e820bcd88b1b7b9fe70387ab8daa697bd344a3946045781
|
data/doc/entities.md
CHANGED
@@ -852,6 +852,9 @@ $ power_stencil get custom_entity/test_entity --raw
|
|
852
852
|
:name: test_entity
|
853
853
|
:parent: !entity custom_entity/foo
|
854
854
|
```
|
855
|
+
|
856
|
+
:information_source: Formerly, `PowerStencil` was using a different way to represent references to other entities using a different yaml tag: `!ps_ref` (representing the reference as a map of `type` and `name`) instead of `!entity` (representing the reference as a string of the entity id, ie `<type>/<name>`). The newer version of `PowerStencil` are compatible with that old format. It will continue reading the old format as well as the new one, but if you save an entity, it will automatically be converted to the new format...
|
857
|
+
|
855
858
|
Here we are referencing an entity of the same type, but of course you can reference any type of entity. Using `has_one` will enforce the type of data you reference. Let's try to mess-up:
|
856
859
|
|
857
860
|
```ruby
|
@@ -53,10 +53,10 @@ module PowerStencil
|
|
53
53
|
|
54
54
|
|
55
55
|
def display_entity(entity)
|
56
|
-
puts_and_logs "# Entity '#{entity.name}' (#{entity.type})"
|
57
56
|
if config[:'names-only']
|
58
57
|
puts "- '#{entity.as_path}' ('#{entity.name}' of the type '#{entity.type}')"
|
59
58
|
else
|
59
|
+
puts_and_logs "# Entity '#{entity.as_path}'"
|
60
60
|
if config[:raw]
|
61
61
|
puts entity.to_yaml
|
62
62
|
else
|
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.
|
4
|
+
version: 0.4.22
|
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-
|
11
|
+
date: 2019-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -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.
|
264
|
+
post_install_message: "\nThank you for installing PowerStencil 0.4.22 !\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 :
|