power_stencil 0.8.12 → 0.8.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/power_stencil/engine/build_handling.rb +5 -0
- data/lib/power_stencil/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 658cd6b4a3099ebad88b964d3d2d29125e2d2632
|
4
|
+
data.tar.gz: d4593e14e6b18d7dcd7888881d4ab8e2cc0188d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8907db7dd9cc04235d905999303b07d643cfd4907cbfb9f67f3efd1eb56469a2436853bb626745f1e768daab7588e951890975fc2614f860876c27d145a8758
|
7
|
+
data.tar.gz: 95a384be8f2a4587af1c46710fdbf6ad10024d439a41c4f96889dfbdf57eb7dcf2ac8860e2f08ccf0e4d0d213a5f2fc957b4d5340d51efa905ada5566701386c
|
@@ -95,8 +95,11 @@ module PowerStencil
|
|
95
95
|
|
96
96
|
|
97
97
|
def build_entity(entity_to_build, target_path)
|
98
|
+
initial_directory = Dir.pwd
|
98
99
|
target_plugin_name = entity_to_build.buildable_by.to_s
|
99
100
|
default_build entity_to_build, target_path
|
101
|
+
# Post processing executed from generated directory (#11)
|
102
|
+
Dir.chdir target_path
|
100
103
|
|
101
104
|
if target_plugin_name.empty?
|
102
105
|
post_build_hook entity_to_build, target_path
|
@@ -106,6 +109,8 @@ module PowerStencil
|
|
106
109
|
raise PowerStencil::Error, "Plugin '#{target_plugin_name}' has no build capability !" unless target_plugin.capabilities[:build]
|
107
110
|
target_plugin.post_build_hook entity_to_build, target_path
|
108
111
|
end
|
112
|
+
ensure
|
113
|
+
Dir.chdir initial_directory
|
109
114
|
end
|
110
115
|
|
111
116
|
def default_build(entity_to_build, target_path)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: power_stencil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laurent Briais
|
@@ -302,7 +302,7 @@ metadata:
|
|
302
302
|
documentation_uri: https://gitlab.com/tools4devops/power_stencil/blob/master/README.md
|
303
303
|
source_code_uri: https://gitlab.com/tools4devops/power_stencil
|
304
304
|
homepage_uri: https://powerstencil.brizone.org/
|
305
|
-
post_install_message: "\nThank you for installing PowerStencil 0.8.
|
305
|
+
post_install_message: "\nThank you for installing PowerStencil 0.8.13 !\nFrom the
|
306
306
|
command line you can run `power_stencil --help`\nIf your shell is not completing
|
307
307
|
the command:\n If you use rbenv: `rbenv rehash`\n If you use zsh : `rehash`\n\nOfficial
|
308
308
|
Website : https://powerstencil.brizone.org/\nFull documentation here :
|