linux_admin 2.0.1 → 3.0.0

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: 8cf63fca0b4828a6f715bb76adc87da2a1913c7e69dd088c02d0ef336e1ffe89
4
- data.tar.gz: 1e535ef615ffc0f776cc76aa790a63405d5888d3570bc7a2b2c1593c7aaa5afe
3
+ metadata.gz: 55478e58c9aaa8793bc1ba5df8216e89e68bbb30cc81faee45393b2ccf61bce9
4
+ data.tar.gz: f41a819b7bc0cd0ec5c6ba8a89bec5a779b3a3ca4884e49fb9e792f25d8c5599
5
5
  SHA512:
6
- metadata.gz: a0672603b8c57e01d31c14f6764a3cf2583260425a3cb6a94e51f2a3b079bcafeacc9a25c1fa306f94465f4d948468bc6da2c6eef12f6380140964ff8480e61f
7
- data.tar.gz: 0ef53c6372868842d1f341c49808e0d0b3a7a0033562c0f3462e3761232b13f183eb6a3094af2f13a8ddf2e4992b101b1c17eade5de5d422adc68dbd671cbe15
6
+ metadata.gz: e661c3f97fe45c92730cc9afefb0c98ea7d70f6ee2c5d7a492319cded40e5e963a7c014c1179b1a9dce17392e1ff6150dde248e9103b5b62b3a6bfb982c481a2
7
+ data.tar.gz: 83772108b1940c6c1aba6e7c17f87ebd657505b0ea38960adef8d319e61d2d14b858c9d99d32a5d20f2216196df4f02c04236cdcbff2b9d192f4e57a0fbe4828
data/README.md CHANGED
@@ -1,12 +1,9 @@
1
1
  # LinuxAdmin
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/linux_admin.svg)](http://badge.fury.io/rb/linux_admin)
4
- [![Build Status](https://travis-ci.com/ManageIQ/linux_admin.svg)](https://travis-ci.com/ManageIQ/linux_admin)
5
- [![Code Climate](http://img.shields.io/codeclimate/github/ManageIQ/linux_admin.svg)](https://codeclimate.com/github/ManageIQ/linux_admin)
6
- [![Coverage Status](http://img.shields.io/coveralls/ManageIQ/linux_admin.svg)](https://coveralls.io/r/ManageIQ/linux_admin)
7
- [![Dependency Status](https://gemnasium.com/ManageIQ/linux_admin.svg)](https://gemnasium.com/ManageIQ/linux_admin)
8
- [![Security](https://hakiri.io/github/ManageIQ/linux_admin/master.svg)](https://hakiri.io/github/ManageIQ/linux_admin/master)
9
-
4
+ [![CI](https://github.com/ManageIQ/linux_admin/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/linux_admin/actions/workflows/ci.yaml)
5
+ [![Code Climate](https://codeclimate.com/github/ManageIQ/linux_admin.svg)](https://codeclimate.com/github/ManageIQ/linux_admin)
6
+ [![Test Coverage](https://codeclimate.com/github/ManageIQ/linux_admin/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/linux_admin/coverage)
10
7
 
11
8
  LinuxAdmin is a module to simplify management of linux systems.
12
9
  It should be a single place to manage various system level configurations,
@@ -4,7 +4,7 @@ module LinuxAdmin
4
4
  module Common
5
5
  include Logging
6
6
 
7
- BIN_DIRS = %w(/bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin)
7
+ BIN_DIRS = ENV["PATH"].split(File::PATH_SEPARATOR).freeze
8
8
 
9
9
  def self.cmd(name)
10
10
  BIN_DIRS.collect { |dir| "#{dir}/#{name}" }.detect { |cmd| File.exist?(cmd) }
@@ -47,7 +47,8 @@ module LinuxAdmin
47
47
  private_class_method :white_list_methods
48
48
 
49
49
  def install_server_certificate(server, cert_path)
50
- host = server.start_with?("http") ? URI.parse(server).host : server
50
+ require 'uri'
51
+ host = server.start_with?("http") ? ::URI.parse(server).host : server
51
52
 
52
53
  LinuxAdmin::Rpm.upgrade("http://#{host}/#{cert_path}")
53
54
  end
@@ -1,3 +1,5 @@
1
+ require "time"
2
+
1
3
  module LinuxAdmin
2
4
  class SystemdService < Service
3
5
  def running?
@@ -32,7 +32,7 @@ module LinuxAdmin
32
32
  end
33
33
 
34
34
  def stop
35
- system({'SSH_AGENT_PID' => @pid}, '(ssh-agent -k) &> /dev/null') if process_exists?(@pid)
35
+ system({'SSH_AGENT_PID' => @pid}, '(ssh-agent -k) >/dev/null 2>&1') if process_exists?(@pid)
36
36
  File.delete(@socket) if File.exist?(@socket)
37
37
  @socket = nil
38
38
  @pid = nil
@@ -1,3 +1,3 @@
1
1
  module LinuxAdmin
2
- VERSION = "2.0.1".freeze
2
+ VERSION = "3.0.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linux_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Dunne
@@ -24,11 +24,28 @@ authors:
24
24
  - Daniel Berger
25
25
  - Satoe Imaishi
26
26
  - d-m-u
27
- autorequire:
27
+ - whitesource-bolt-for-github[bot]
28
+ - Adam Grare
29
+ - renovate[bot]
30
+ autorequire:
28
31
  bindir: bin
29
32
  cert_chain: []
30
- date: 2020-05-29 00:00:00.000000000 Z
33
+ date: 2024-04-30 00:00:00.000000000 Z
31
34
  dependencies:
35
+ - !ruby/object:Gem::Dependency
36
+ name: manageiq-style
37
+ requirement: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ type: :development
43
+ prerelease: false
44
+ version_requirements: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
32
49
  - !ruby/object:Gem::Dependency
33
50
  name: rake
34
51
  requirement: !ruby/object:Gem::Requirement
@@ -58,7 +75,7 @@ dependencies:
58
75
  - !ruby/object:Gem::Version
59
76
  version: '3.0'
60
77
  - !ruby/object:Gem::Dependency
61
- name: coveralls
78
+ name: rubocop
62
79
  requirement: !ruby/object:Gem::Requirement
63
80
  requirements:
64
81
  - - ">="
@@ -72,33 +89,59 @@ dependencies:
72
89
  - !ruby/object:Gem::Version
73
90
  version: '0'
74
91
  - !ruby/object:Gem::Dependency
75
- name: rubocop
92
+ name: awesome_spawn
93
+ requirement: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '1.6'
98
+ type: :runtime
99
+ prerelease: false
100
+ version_requirements: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '1.6'
105
+ - !ruby/object:Gem::Dependency
106
+ name: bcrypt_pbkdf
76
107
  requirement: !ruby/object:Gem::Requirement
77
108
  requirements:
78
109
  - - ">="
79
110
  - !ruby/object:Gem::Version
80
- version: '0'
81
- type: :development
111
+ version: '1.0'
112
+ - - "<"
113
+ - !ruby/object:Gem::Version
114
+ version: '2.0'
115
+ type: :runtime
82
116
  prerelease: false
83
117
  version_requirements: !ruby/object:Gem::Requirement
84
118
  requirements:
85
119
  - - ">="
86
120
  - !ruby/object:Gem::Version
87
- version: '0'
121
+ version: '1.0'
122
+ - - "<"
123
+ - !ruby/object:Gem::Version
124
+ version: '2.0'
88
125
  - !ruby/object:Gem::Dependency
89
- name: awesome_spawn
126
+ name: ed25519
90
127
  requirement: !ruby/object:Gem::Requirement
91
128
  requirements:
92
- - - "~>"
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '1.2'
132
+ - - "<"
93
133
  - !ruby/object:Gem::Version
94
- version: '1.3'
134
+ version: '2.0'
95
135
  type: :runtime
96
136
  prerelease: false
97
137
  version_requirements: !ruby/object:Gem::Requirement
98
138
  requirements:
99
- - - "~>"
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ version: '1.2'
142
+ - - "<"
100
143
  - !ruby/object:Gem::Version
101
- version: '1.3'
144
+ version: '2.0'
102
145
  - !ruby/object:Gem::Dependency
103
146
  name: inifile
104
147
  requirement: !ruby/object:Gem::Requirement
@@ -119,14 +162,28 @@ dependencies:
119
162
  requirements:
120
163
  - - "~>"
121
164
  - !ruby/object:Gem::Version
122
- version: '3.0'
165
+ version: '4.0'
123
166
  type: :runtime
124
167
  prerelease: false
125
168
  version_requirements: !ruby/object:Gem::Requirement
126
169
  requirements:
127
170
  - - "~>"
128
171
  - !ruby/object:Gem::Version
129
- version: '3.0'
172
+ version: '4.0'
173
+ - !ruby/object:Gem::Dependency
174
+ name: net-ssh
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - "~>"
178
+ - !ruby/object:Gem::Version
179
+ version: 7.2.3
180
+ type: :runtime
181
+ prerelease: false
182
+ version_requirements: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - "~>"
185
+ - !ruby/object:Gem::Version
186
+ version: 7.2.3
130
187
  - !ruby/object:Gem::Dependency
131
188
  name: nokogiri
132
189
  requirement: !ruby/object:Gem::Requirement
@@ -180,19 +237,19 @@ dependencies:
180
237
  - !ruby/object:Gem::Version
181
238
  version: '0'
182
239
  - !ruby/object:Gem::Dependency
183
- name: net-ssh
240
+ name: simplecov
184
241
  requirement: !ruby/object:Gem::Requirement
185
242
  requirements:
186
- - - "~>"
243
+ - - ">="
187
244
  - !ruby/object:Gem::Version
188
- version: 4.2.0
189
- type: :runtime
245
+ version: 0.21.2
246
+ type: :development
190
247
  prerelease: false
191
248
  version_requirements: !ruby/object:Gem::Requirement
192
249
  requirements:
193
- - - "~>"
250
+ - - ">="
194
251
  - !ruby/object:Gem::Version
195
- version: 4.2.0
252
+ version: 0.21.2
196
253
  description: |2
197
254
 
198
255
  LinuxAdmin is a module to simplify management of linux systems.
@@ -202,7 +259,7 @@ email:
202
259
  - brandondunne@hotmail.com
203
260
  - fryguy9@gmail.com
204
261
  - mmorsi@redhat.com
205
- - jrafanie@redhat.com
262
+ - jrafanie@gmail.com
206
263
  - keenan@thebrocks.net
207
264
  - twiest@redhat.com
208
265
  - ncarboni@redhat.com
@@ -218,7 +275,10 @@ email:
218
275
  - nicklamuro@gmail.com
219
276
  - djberg96@gmail.com
220
277
  - simaishi@redhat.com
221
- - drewuhlmann@gmail.com
278
+ - 16326669+d-m-u@users.noreply.github.com
279
+ - 42819689+whitesource-bolt-for-github[bot]@users.noreply.github.com
280
+ - adam@grare.com
281
+ - 29139614+renovate[bot]@users.noreply.github.com
222
282
  executables: []
223
283
  extensions: []
224
284
  extra_rdoc_files: []
@@ -268,7 +328,7 @@ homepage: http://github.com/ManageIQ/linux_admin
268
328
  licenses:
269
329
  - MIT
270
330
  metadata: {}
271
- post_install_message:
331
+ post_install_message:
272
332
  rdoc_options: []
273
333
  require_paths:
274
334
  - lib
@@ -276,15 +336,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
276
336
  requirements:
277
337
  - - ">="
278
338
  - !ruby/object:Gem::Version
279
- version: 2.0.0
339
+ version: '2.6'
280
340
  required_rubygems_version: !ruby/object:Gem::Requirement
281
341
  requirements:
282
342
  - - ">="
283
343
  - !ruby/object:Gem::Version
284
344
  version: '0'
285
345
  requirements: []
286
- rubygems_version: 3.0.6
287
- signing_key:
346
+ rubygems_version: 3.5.9
347
+ signing_key:
288
348
  specification_version: 4
289
349
  summary: LinuxAdmin is a module to simplify management of linux systems.
290
350
  test_files: []