power_stencil 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75be0351239fd3b94c0cbb5b3482ed98172c3119
4
- data.tar.gz: ffc7878ce34439f0947a1b568eb56eb07c746514
3
+ metadata.gz: 1a2e53eb7415b0c65c752c3414bb319399370d08
4
+ data.tar.gz: 1e2e472a41db6d94a56d183b1f3d83e88e42ea81
5
5
  SHA512:
6
- metadata.gz: 97ea218bf8fe32f520732d741221984e2e5a4e2f50712aac9f389209e2cedb88a7e550bbe4b3284fb5bdcd0aa8492f5278a2869b2277e8d42497c7702998c921
7
- data.tar.gz: e7a94779f26e44892aaf80d76f4c12a53517017896a48718096c4b03178918424407a22c338fa41c5b7672ac095c603235c81a2751ae8c7d4e02c13bfc45bf89
6
+ metadata.gz: 6934342894ee4eb551b8fc9960f58756aa476ccd9b34d655ac40e8b7ccbb542672cb01f05f40c31bccdd9c4ce3dee8c6efbfb4d78527d8c8b7c07192c15c2b40
7
+ data.tar.gz: 096b413386734312781ee4dc4b31f80e3a31d44552ecb49eb42338c7ad9b0159191c4de39794ef32dd6ec6cc42c9a10739e7496ff887e2e97472eb6cdc72ae28
@@ -10,11 +10,22 @@ module PowerStencil
10
10
  def execute
11
11
 
12
12
  if config[:install]
13
+ begin
14
+ project
15
+ rescue
16
+ # Do not check errors. This is just to load project config...
17
+ logger.debug "Project config loaded"
18
+ end
19
+ if config[:project_plugins].empty?
20
+ puts_and_logs "No plugins declared... Check your config file.", check_verbose: false
21
+ return
22
+ end
13
23
  config[:project_plugins].each do |plugin_definition|
14
24
  gem_name, gem_req = PowerStencil::Plugins::Base.plugin_definition_to_name_and_req plugin_definition
25
+ logger.debug "Trying to install plugin '#{gem_name}'..."
15
26
  specs = PowerStencil::Plugins::Base.install_gem gem_name, gem_req
16
27
  spec = specs.first
17
- puts "Installed plugin '#{spec.name}' (version: #{spec.version})"
28
+ puts_and_logs "Installed plugin '#{spec.name}' (version: #{spec.version})", check_verbose: false
18
29
  end
19
30
  return
20
31
  end
@@ -1,3 +1,3 @@
1
1
  module PowerStencil
2
- VERSION = '0.7.0'.freeze
2
+ VERSION = '0.7.1'.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.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent Briais
@@ -291,7 +291,7 @@ metadata:
291
291
  documentation_uri: https://gitlab.com/tools4devops/power_stencil/blob/master/README.md
292
292
  source_code_uri: https://gitlab.com/tools4devops/power_stencil
293
293
  homepage_uri: https://powerstencil.brizone.org/
294
- post_install_message: "\nThank you for installing PowerStencil 0.7.0 !\nFrom the command
294
+ post_install_message: "\nThank you for installing PowerStencil 0.7.1 !\nFrom the command
295
295
  line you can run `power_stencil --help`\nIf your shell is not completing the command:\n
296
296
  \ If you use rbenv: `rbenv rehash`\n If you use zsh : `rehash`\n\nOfficial Website
297
297
  \ : https://powerstencil.brizone.org/\nFull documentation here : https://gitlab.com/tools4devops/power_stencil/blob/master/README.md\nFeel