power_stencil 0.7.0 → 0.7.1
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/command_processors/plugin.rb +12 -1
- 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: 1a2e53eb7415b0c65c752c3414bb319399370d08
|
4
|
+
data.tar.gz: 1e2e472a41db6d94a56d183b1f3d83e88e42ea81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
28
|
+
puts_and_logs "Installed plugin '#{spec.name}' (version: #{spec.version})", check_verbose: false
|
18
29
|
end
|
19
30
|
return
|
20
31
|
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.
|
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.
|
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
|