kanrisuru 0.2.5 → 0.2.6

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: 0213672a73fb6651ab25d44275fd5965154ceaf2515292adb840e28d0f7fb3fd
4
- data.tar.gz: dc43e93139baa11a9c2afe9a242431a25293a0d3fdf21b111aae316a6ac125dc
3
+ metadata.gz: 8442dfb50e30ac79aacd58ed1dd80ac17858571c3d84790eed8d8efcad7e6f29
4
+ data.tar.gz: bab46330d7f3aca3dee667501d2a59a001f813665a071be8362b8a9a6b9e2a18
5
5
  SHA512:
6
- metadata.gz: 78f991ed867dbdd292568b42d1079a40926334fbdef6396092e0d5a25c03759038ff6b459c28b3005eac02863198b5306c9d54a3f6d8d77041c006d9fc89c7b2
7
- data.tar.gz: '0719742cfd38a1e2b7a2e842c28d9b6038500b761661351c1ab4bf67650887fec4251abf93cbacd941cca28c1010fbdf23864622f203d501f44213bf9a1d169d'
6
+ metadata.gz: 852303708004d232098e85ad7ea762caa69bb65b450d4b9cda0eb208c573e85d47f46981a3a281de35cbd84830ca9a52f71126486848962ad980acbb6940d48b
7
+ data.tar.gz: a9c234d9e6c112ce682fb444b3c77eaa76619fbc46b3d64ab86914beebead28268e460fb5305a5642c9f662c318d22836e8b2b1b7c11891b531b9615c5f2a5e4
@@ -16,6 +16,7 @@ require_relative 'core/ip'
16
16
  require_relative 'core/socket'
17
17
  require_relative 'core/apt'
18
18
  require_relative 'core/yum'
19
+ require_relative 'core/zypper'
19
20
 
20
21
  module Kanrisuru
21
22
  module Remote
@@ -36,6 +37,7 @@ module Kanrisuru
36
37
  os_include Kanrisuru::Core::Socket
37
38
  os_include Kanrisuru::Core::Apt
38
39
  os_include Kanrisuru::Core::Yum
40
+ os_include Kanrisuru::Core::Zypper
39
41
  end
40
42
 
41
43
  class Cluster
@@ -54,6 +56,7 @@ module Kanrisuru
54
56
  os_collection Kanrisuru::Core::Socket
55
57
  os_collection Kanrisuru::Core::Apt
56
58
  os_collection Kanrisuru::Core::Yum
59
+ os_collection Kanrisuru::Core::Zypper
57
60
  end
58
61
  end
59
62
  end
@@ -44,7 +44,6 @@ module Kanrisuru
44
44
  date = DateTime.parse("#{values[6]} #{values[7]} #{values[8]}")
45
45
 
46
46
  type = values[1].include?('d') ? 'directory' : 'file'
47
-
48
47
  items <<
49
48
  if id
50
49
  FileInfoId.new(
@@ -72,7 +72,9 @@ module Kanrisuru
72
72
  result = @host.execute(command)
73
73
  raise 'Invalid os release' if result.failure?
74
74
 
75
- result.to_s.gsub(/"/, '')
75
+ value = result.to_s
76
+ value = value.gsub(/"/, '')
77
+ value.gsub('-', '_')
76
78
  end
77
79
 
78
80
  def parse_os_version
@@ -179,7 +179,7 @@ module Kanrisuru
179
179
  sles: {
180
180
  name: 'SUSE Linux Enterprise Server',
181
181
  os_family: 'linux',
182
- upstream: 'linux',
182
+ upstream: 'opensuse',
183
183
  model: 'commercial',
184
184
  state: 'current',
185
185
  type: 'distribution'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kanrisuru
4
- VERSION = '0.2.5'
4
+ VERSION = '0.2.6'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kanrisuru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Mammina
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-16 00:00:00.000000000 Z
11
+ date: 2021-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec