power_stencil 0.4.8 → 0.4.13
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 -1
- data/doc/images/power-stencil-simple-flow.svg +19 -20
- data/etc/power_stencil.yaml +2 -0
- data/etc/templates/project/.ps_project/plugins/README.md +12 -0
- data/etc/templates/project/.ps_project/templates-templates/README.md +4 -6
- data/etc/templates/project/{.gitignore.erb → .zzzgitignore.erb} +0 -0
- data/lib/power_stencil/engine/directory_processor.rb +1 -1
- data/lib/power_stencil/utils/directory_processor.rb +1 -1
- data/lib/power_stencil/version.rb +1 -1
- data/power_stencil.gemspec +13 -3
- metadata +16 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fca238f33a9bf3e40e4bd67f206222a9948aec3b
|
4
|
+
data.tar.gz: a37bc631b2dd484ce178e92fad3e111d2ae71baf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56677a6eca4255ee646b98f5dfb719130f2d83cf50a63b3060fca00780f17a998087c96c11d5b94f2f12e1a375884ef322fd62abb6a95132a15a77a79ad6935f
|
7
|
+
data.tar.gz: ab78a10d95e5ee949a4044d733c381cc38707da75f02bb494e1a6705c5420f86a52cab285062849163a6b7c60a3e7500e6bf76cd2c80a7cada67d666d14b0b4d
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PowerStencil
|
2
2
|
============
|
3
3
|
|
4
|
-
[![ ](https://gitlab.com/tools4devops/power_stencil/badges/master/pipeline.svg)](https://gitlab.com/tools4devops/power_stencil/commits/master)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/power_stencil.svg)](https://rubygems.org/gems/power_stencil) [![Pipeline status](https://gitlab.com/tools4devops/power_stencil/badges/master/pipeline.svg)](https://gitlab.com/tools4devops/power_stencil/commits/master)
|
5
5
|
|
6
6
|
`Power Stencil` is the Swiss-army knife templating workflow for developers and ops.
|
7
7
|
|
@@ -68,9 +68,9 @@
|
|
68
68
|
borderopacity="1.0"
|
69
69
|
inkscape:pageopacity="0.0"
|
70
70
|
inkscape:pageshadow="2"
|
71
|
-
inkscape:zoom="0.
|
72
|
-
inkscape:cx="
|
73
|
-
inkscape:cy="
|
71
|
+
inkscape:zoom="0.98994949"
|
72
|
+
inkscape:cx="651.7638"
|
73
|
+
inkscape:cy="23.641026"
|
74
74
|
inkscape:document-units="mm"
|
75
75
|
inkscape:current-layer="layer1"
|
76
76
|
showgrid="false"
|
@@ -129,7 +129,7 @@
|
|
129
129
|
inkscape:path-effect="#path-effect1081"
|
130
130
|
inkscape:original-d="m -20.579753,67.932995 c 104.23538,-2.64e-4 208.470493,-2.64e-4 312.705333,0" />
|
131
131
|
<g
|
132
|
-
id="
|
132
|
+
id="g870">
|
133
133
|
<rect
|
134
134
|
ry="1.3100638"
|
135
135
|
y="59.92662"
|
@@ -140,27 +140,26 @@
|
|
140
140
|
style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#a7c2db;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.48427609;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" />
|
141
141
|
<text
|
142
142
|
id="text819"
|
143
|
-
y="66.
|
144
|
-
x="
|
143
|
+
y="66.765266"
|
144
|
+
x="9.4663115"
|
145
145
|
style="font-style:normal;font-weight:normal;font-size:4.63020849px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
146
146
|
xml:space="preserve"><tspan
|
147
|
-
id="tspan821"
|
148
|
-
style="stroke-width:0.26458332px"
|
149
|
-
y="66.31649"
|
150
|
-
x="10.098216"
|
151
|
-
sodipodi:role="line">Project </tspan><tspan
|
152
147
|
id="tspan865"
|
153
148
|
style="stroke-width:0.26458332px"
|
154
|
-
y="
|
155
|
-
x="
|
156
|
-
sodipodi:role="line">Templates
|
149
|
+
y="66.765266"
|
150
|
+
x="9.4663115"
|
151
|
+
sodipodi:role="line">Project Templates </tspan><tspan
|
152
|
+
id="tspan864"
|
153
|
+
style="stroke-width:0.26458332px"
|
154
|
+
y="72.553024"
|
155
|
+
x="9.4663115"
|
156
|
+
sodipodi:role="line">& Structured Data</tspan></text>
|
157
157
|
</g>
|
158
158
|
<g
|
159
|
-
id="
|
160
|
-
transform="translate(-2.9812257e-6,-0.76938629)">
|
159
|
+
id="g880">
|
161
160
|
<rect
|
162
161
|
ry="1.3100638"
|
163
|
-
y="
|
162
|
+
y="59.92662"
|
164
163
|
x="81.007019"
|
165
164
|
height="16.012749"
|
166
165
|
width="55.700253"
|
@@ -168,18 +167,18 @@
|
|
168
167
|
style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#a7c2db;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.48427609;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" />
|
169
168
|
<text
|
170
169
|
id="text819-2"
|
171
|
-
y="
|
170
|
+
y="66.31649"
|
172
171
|
x="82.828049"
|
173
172
|
style="font-style:normal;font-weight:normal;font-size:4.63020849px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
174
173
|
xml:space="preserve"><tspan
|
175
174
|
id="tspan821-7"
|
176
175
|
style="stroke-width:0.26458332px"
|
177
|
-
y="
|
176
|
+
y="66.31649"
|
178
177
|
x="82.828049"
|
179
178
|
sodipodi:role="line">PowerStencil</tspan><tspan
|
180
179
|
id="tspan861"
|
181
180
|
style="stroke-width:0.26458332px"
|
182
|
-
y="72.
|
181
|
+
y="72.104248"
|
183
182
|
x="82.828049"
|
184
183
|
sodipodi:role="line">Core actions & Plugins</tspan></text>
|
185
184
|
</g>
|
data/etc/power_stencil.yaml
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
PowerStencil plugins
|
2
|
+
====================
|
3
|
+
|
4
|
+
|
5
|
+
In this directory, you can define project specific local plugins.
|
6
|
+
You should create them using the `PowerStencil` command-line.
|
7
|
+
|
8
|
+
$ power_stencil new-plugin myplugin
|
9
|
+
|
10
|
+
__It is strongly advised to keep this directory under source control__
|
11
|
+
|
12
|
+
This should be the PowerStencil default behaviour.
|
@@ -1,12 +1,10 @@
|
|
1
|
-
PowerStencil project templates
|
2
|
-
|
1
|
+
PowerStencil project templates templates
|
2
|
+
========================================
|
3
3
|
|
4
4
|
|
5
|
-
In this directory, you can define project specific templates for
|
6
|
-
defined locally in this project.
|
5
|
+
In this directory, you can define project specific templates for entity types defined locally in this project.
|
7
6
|
|
8
|
-
Templates can be a whole tree structure in a directory named from the entity
|
9
|
-
type of entities you defined in `entity_definitions` folder that are `buildable`.
|
7
|
+
Templates can be a whole tree structure in a directory named from the entity type of entities you defined in `entity_definitions` folder that are `buildable`.
|
10
8
|
|
11
9
|
__It is strongly advised to keep this directory under source control__
|
12
10
|
|
File without changes
|
@@ -59,7 +59,7 @@ module PowerStencil
|
|
59
59
|
unless files_not_to_rename.ignore_file? src_file
|
60
60
|
config[:file_renaming_patterns].each do |regexp_str, replacement|
|
61
61
|
regexp = Regexp.new regexp_str
|
62
|
-
next if (
|
62
|
+
next if (src_file =~ regexp).nil?
|
63
63
|
dest_file = dest_file.gsub regexp, replacement
|
64
64
|
break
|
65
65
|
end
|
@@ -12,7 +12,7 @@ module PowerStencil
|
|
12
12
|
# Dir.glob_with_ignore_file ignore_file, base_dir, *glob_args, &block
|
13
13
|
file_pattern = "#{source}/**/*"
|
14
14
|
res = {}
|
15
|
-
Dir.glob_with_ignore_file
|
15
|
+
Dir.glob_with_ignore_file(ignore_files_pattern, source, file_pattern, File::FNM_DOTMATCH).sort.each do |original_file|
|
16
16
|
logger.debug "Processing '#{original_file}'"
|
17
17
|
res[original_file] = destination_file(original_file, source, destination)
|
18
18
|
if block_given?
|
data/power_stencil.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = %q{PowerStencil is the Swiss-army knife templating workflow for developers and ops.}
|
13
13
|
spec.description = %q{PowerStencil is the Swiss-army knife templating workflow for developers and ops.}
|
14
|
-
spec.homepage = 'https://powerstencil.brizone.org'
|
14
|
+
spec.homepage = 'https://powerstencil.brizone.org/'
|
15
15
|
spec.license = 'MIT'
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
@@ -30,6 +30,15 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency 'universe_compiler', '~> 0.4.3'
|
31
31
|
spec.add_dependency 'pry'
|
32
32
|
|
33
|
+
source_code_uri = 'https://gitlab.com/tools4devops/power_stencil'
|
34
|
+
|
35
|
+
spec.metadata = {
|
36
|
+
'bug_tracker_uri' => "#{source_code_uri}/issues",
|
37
|
+
'documentation_uri' => "#{source_code_uri}/blob/master/README.md",
|
38
|
+
'source_code_uri' => source_code_uri,
|
39
|
+
'homepage_uri' => spec.homepage
|
40
|
+
}
|
41
|
+
|
33
42
|
spec.post_install_message = %Q{
|
34
43
|
Thank you for installing PowerStencil #{PowerStencil::VERSION} !
|
35
44
|
From the command line you can run `power_stencil --help`
|
@@ -37,7 +46,8 @@ If your shell is not completing the command:
|
|
37
46
|
If you use rbenv: `rbenv rehash`
|
38
47
|
If you use zsh : `rehash`
|
39
48
|
|
40
|
-
|
41
|
-
|
49
|
+
Official Website : #{spec.homepage}
|
50
|
+
Full documentation here : #{spec.metadata['source_code_uri']}/blob/master/README.md
|
51
|
+
Feel free to report issues: #{spec.metadata['source_code_uri']}/issues
|
42
52
|
}
|
43
53
|
end
|
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.13
|
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-
|
11
|
+
date: 2019-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -171,18 +171,19 @@ files:
|
|
171
171
|
- etc/templates/plugin_definition/spec/spec_helper.rb
|
172
172
|
- etc/templates/plugin_definition/spec/{entity}_spec.rb
|
173
173
|
- etc/templates/project/.copy_ignore
|
174
|
-
- etc/templates/project/.gitignore.erb
|
175
174
|
- etc/templates/project/.ps_project/entities/.gitkeep
|
176
175
|
- etc/templates/project/.ps_project/entities/README.md
|
177
176
|
- etc/templates/project/.ps_project/entity_definitions/.gitkeep
|
178
177
|
- etc/templates/project/.ps_project/entity_definitions/README.md
|
179
178
|
- etc/templates/project/.ps_project/personal-config.yaml
|
180
179
|
- etc/templates/project/.ps_project/plugins/.gitkeep
|
180
|
+
- etc/templates/project/.ps_project/plugins/README.md
|
181
181
|
- etc/templates/project/.ps_project/templates-templates/.gitkeep
|
182
182
|
- etc/templates/project/.ps_project/templates-templates/README.md
|
183
183
|
- etc/templates/project/.ps_project/user_entities/.gitkeep
|
184
184
|
- etc/templates/project/.ps_project/user_entities/README.md
|
185
185
|
- etc/templates/project/.ps_project/versioned-config.yaml
|
186
|
+
- etc/templates/project/.zzzgitignore.erb
|
186
187
|
- etc/templates/simple_exec/main.sh
|
187
188
|
- exe/power_stencil
|
188
189
|
- lib/power_stencil.rb
|
@@ -250,15 +251,20 @@ files:
|
|
250
251
|
- lib/power_stencil/utils/semantic_version.rb
|
251
252
|
- lib/power_stencil/version.rb
|
252
253
|
- power_stencil.gemspec
|
253
|
-
homepage: https://powerstencil.brizone.org
|
254
|
+
homepage: https://powerstencil.brizone.org/
|
254
255
|
licenses:
|
255
256
|
- MIT
|
256
|
-
metadata:
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
257
|
+
metadata:
|
258
|
+
bug_tracker_uri: https://gitlab.com/tools4devops/power_stencil/issues
|
259
|
+
documentation_uri: https://gitlab.com/tools4devops/power_stencil/blob/master/README.md
|
260
|
+
source_code_uri: https://gitlab.com/tools4devops/power_stencil
|
261
|
+
homepage_uri: https://powerstencil.brizone.org/
|
262
|
+
post_install_message: "\nThank you for installing PowerStencil 0.4.13 !\nFrom the
|
263
|
+
command line you can run `power_stencil --help`\nIf your shell is not completing
|
264
|
+
the command:\n If you use rbenv: `rbenv rehash`\n If you use zsh : `rehash`\n\nOfficial
|
265
|
+
Website : https://powerstencil.brizone.org/\nFull documentation here :
|
266
|
+
https://gitlab.com/tools4devops/power_stencil/blob/master/README.md\nFeel free to
|
267
|
+
report issues: https://gitlab.com/tools4devops/power_stencil/issues\n "
|
262
268
|
rdoc_options: []
|
263
269
|
require_paths:
|
264
270
|
- lib
|