power_stencil 0.6.2 → 0.6.3

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: 4ab896eb3e63889b7f9a855ee1ae4a740fdafc73
4
- data.tar.gz: cf42d440b67e74edcba8d9569fafc3d04d877757
3
+ metadata.gz: 40a1c784720fe14e0e62ee24a66c24d0780d6165
4
+ data.tar.gz: 4eabaf0235839fe34f87ca9d2c3b59cd9c078b00
5
5
  SHA512:
6
- metadata.gz: 810213cbbb8dc1d9913031da7a90c77e9c2a7f2a453e5492bc051857ca33b9f8087f0d171991ae1d9a2ae147bead8dd25e3767dc81c6af9f5d0508e72918b992
7
- data.tar.gz: a564943c393aac1c084afa0f8c8d0685cb7c0be204ed35545b622fe0b90d13fa82b329ef266ba5481ba18865daedcf595c64ef95f6d5993afaf2dbda257eff1e
6
+ metadata.gz: 352caf7d55a27af71ad39a8e5c1a201943216ae8a685bb32b8592431a7fdccb9365fdc9f0ef636e06a59636c2941e19c1ec42f861a23bf7231b2a1401e2fc1bc
7
+ data.tar.gz: 97a20691531c85b72e243b8cc6376da7142924546209fe6713f9a5393c4885f8105c6d48fe3b2d2dcd07e1fabc1c37cc0c62ecb8d2ad3778e6e624d28ec345c9
@@ -17,12 +17,6 @@ module PowerStencil
17
17
  logger.debug 'Starting PowerStencil initialization...'
18
18
  setup_system_processors
19
19
  setup_universe_compiler_logger
20
- # @project = try_to_load_project fail_on_error: false
21
- begin
22
- project.setup_templates_for_entities # unless project.nil?
23
- rescue => e
24
- logger.debug PowerStencil::Error.report_error e
25
- end
26
20
  logger.debug 'PowerStencil initialization complete'
27
21
  end
28
22
 
@@ -36,7 +30,6 @@ module PowerStencil
36
30
 
37
31
  def try_to_load_project(fail_on_error: true)
38
32
  PowerStencil::Project::Base.instantiate_from_config config
39
-
40
33
  end
41
34
 
42
35
  def setup_system_processors
@@ -7,7 +7,7 @@ module PowerStencil
7
7
  return unless capabilities[:templates]
8
8
  logger.info "Loading '#{self.name}' plugin templates..."
9
9
  plugin_definition[:templates].each do |templates_path|
10
- plugin_templates_path = File.join self.path, templates_path
10
+ plugin_templates_path = File.join self.plugin_path, templates_path
11
11
  Dir.entries(plugin_templates_path).reject { |e| %w(. ..).include? e }.each do |entry|
12
12
  template_path = File.join(plugin_templates_path, entry)
13
13
  if Dir.exist? template_path
@@ -45,11 +45,19 @@ module PowerStencil
45
45
  bootstrap_plugins
46
46
  build_engines
47
47
  register_system_templates
48
+ register_plugins_templates
48
49
  register_project_templates
49
50
  end
50
51
 
51
52
  private
52
53
 
54
+ def register_plugins_templates
55
+ plugins.each do |_, plugin|
56
+ plugin.register_plugin_templates
57
+ end
58
+ end
59
+
60
+
53
61
  def register_project_templates
54
62
  dir = project_templates_path
55
63
  if Dir.exist? dir and File.readable? dir
@@ -1,3 +1,3 @@
1
1
  module PowerStencil
2
- VERSION = '0.6.2'.freeze
2
+ VERSION = '0.6.3'.freeze
3
3
  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.6.2
4
+ version: 0.6.3
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-28 00:00:00.000000000 Z
11
+ date: 2019-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -276,7 +276,7 @@ metadata:
276
276
  documentation_uri: https://gitlab.com/tools4devops/power_stencil/blob/master/README.md
277
277
  source_code_uri: https://gitlab.com/tools4devops/power_stencil
278
278
  homepage_uri: https://powerstencil.brizone.org/
279
- post_install_message: "\nThank you for installing PowerStencil 0.6.2 !\nFrom the command
279
+ post_install_message: "\nThank you for installing PowerStencil 0.6.3 !\nFrom the command
280
280
  line you can run `power_stencil --help`\nIf your shell is not completing the command:\n
281
281
  \ If you use rbenv: `rbenv rehash`\n If you use zsh : `rehash`\n\nOfficial Website
282
282
  \ : https://powerstencil.brizone.org/\nFull documentation here : https://gitlab.com/tools4devops/power_stencil/blob/master/README.md\nFeel