pero 0.5.3 → 0.5.4

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
  SHA256:
3
- metadata.gz: e8fc62fc16984c838f034444f6dc537009aaa019e460a5998bad1184411c8a5b
4
- data.tar.gz: 02233a95f14a8a58e622cfc1cb23cdc55edb81b2ede70bd015872ad642788189
3
+ metadata.gz: 5c70b7eacb6c850afd1cdd014f357204cf34face7354aeb5056cf3869172794e
4
+ data.tar.gz: 83d9dd8fedd249340337914d5635725b9f2cd189fac0d8bc189c7e9a3a74874f
5
5
  SHA512:
6
- metadata.gz: 88141e0b5932f838695df5fca5a558a1b9523a8486201d643bf866cbf019771f011d8dede89d363518fe70873b4d5fa86dd1746ba6bc16e2a3cafe6f4af729af
7
- data.tar.gz: cc8ad0c0c15759f70a318121dcc4cf567138c35e1321e460820563112c132c65efcc1d853bfa69ba2612617436c13e8a338851dd0a29b49eb946ba6da09de1e9
6
+ metadata.gz: bb72ebfec2140ef2bde35127614ed05240e73b41ebd7442d9cf8ab8bcc9b2bbed3c98198c6caef0932481066477246661332741b7a44d3fcfeb7667509709741
7
+ data.tar.gz: 4a9288d537cc01061b725552f9dd01ce71f48112cf9f49a5b180bba9cb5274521d95b7d673e3f9121d518158ae3596cba1e100e4a1f6c62d8acdcf2509fd1862
data/lib/pero/cli.rb CHANGED
@@ -57,7 +57,10 @@ module Pero
57
57
 
58
58
  prepare
59
59
  nodes = Pero::History.search(name_regexp)
60
- return unless nodes
60
+ if nodes.empty?
61
+ Pero.log.info 'No matching node found.'
62
+ return
63
+ end
61
64
  m = Mutex.new
62
65
 
63
66
  begin
@@ -117,8 +120,8 @@ module Pero
117
120
  end
118
121
 
119
122
  def prepare
120
- `bundle install` if File.exists?("Gemfile")
121
- `bundle exec librarian-puppet install` if File.exists?("Puppetfile")
123
+ `bundle install` if File.exist?("Gemfile")
124
+ `bundle exec librarian-puppet install` if File.exist?("Puppetfile")
122
125
  end
123
126
  end
124
127
  end
data/lib/pero/docker.rb CHANGED
@@ -135,8 +135,10 @@ EOS
135
135
  ["puppetlabs-release-pc1-el-#{el}.noarch.rpm", "puppetserver"]
136
136
  elsif Gem::Version.new("6.0.0") > Gem::Version.new(server_version)&& Gem::Version.new("5.0.0") <= Gem::Version.new(server_version)
137
137
  ["puppet5-release-el-#{el}.noarch.rpm", "puppetserver"]
138
- else
138
+ elsif Gem::Version.new("7.0.0") > Gem::Version.new(server_version)&& Gem::Version.new("6.0.0") <= Gem::Version.new(server_version)
139
139
  ["puppet6-release-el-#{el}.noarch.rpm", "puppetserver"]
140
+ else
141
+ ["puppet7-release-el-#{el}.noarch.rpm", "puppetserver"]
140
142
  end
141
143
 
142
144
  vault_repo = if el == 6
@@ -44,8 +44,10 @@ module Pero
44
44
  ["puppetlabs-release-pc1-el-#{main_release}.noarch.rpm", "puppet"]
45
45
  elsif Gem::Version.new("6.0.0") > Gem::Version.new(version) && Gem::Version.new("5.0.0") <= Gem::Version.new(version)
46
46
  ["puppet5-release-el-#{main_release}.noarch.rpm", "puppet-agent"]
47
- else
47
+ elsif Gem::Version.new("7.0.0") > Gem::Version.new(version) && Gem::Version.new("6.0.0") <= Gem::Version.new(version)
48
48
  ["puppet6-release-el-#{main_release}.noarch.rpm", "puppet-agent"]
49
+ else
50
+ ["puppet7-release-el-#{main_release}.noarch.rpm", "puppet-agent"]
49
51
  end
50
52
 
51
53
  unless run_specinfra(:check_package_is_installed, package_name, version)
data/lib/pero/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pero
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - pyama86
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-16 00:00:00.000000000 Z
11
+ date: 2023-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  - !ruby/object:Gem::Version
200
200
  version: '0'
201
201
  requirements: []
202
- rubygems_version: 3.1.4
202
+ rubygems_version: 3.3.26
203
203
  signing_key:
204
204
  specification_version: 4
205
205
  summary: tool for puppet apply from our desktop.