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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7dc79ec2bfd2b5329682f131365f15c693374d8d
4
- data.tar.gz: 76f1e96f4d147cf6f1cd02895943033e8d1d3686
3
+ metadata.gz: 658cd6b4a3099ebad88b964d3d2d29125e2d2632
4
+ data.tar.gz: d4593e14e6b18d7dcd7888881d4ab8e2cc0188d7
5
5
  SHA512:
6
- metadata.gz: e672747d710d0b5a350a1870d651594ddc5eb5e4f8d3a0eead55a121a4f7d0ba4380a32f272bd5315bf2c8751452cc554e8fc63c1d58d5f27078ab57587ddea0
7
- data.tar.gz: 8780ba7d6d7dd186f4de790e37154c46eee6ed3f085639420a22e771c44d91e8586aeb175993577c5e76bb87aaae367a6439130107462e6f7a513ad0682efaf6
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)
@@ -1,3 +1,3 @@
1
1
  module PowerStencil
2
- VERSION = '0.8.12'.freeze
2
+ VERSION = '0.8.13'.freeze
3
3
  end
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.12
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.12 !\nFrom the
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 :