kanrisuru 0.5.1 → 0.5.2

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: dc51b70af722636189fb05ba719d22c08c1d75c1905d52c6e2991df39791aea3
4
- data.tar.gz: fd2aa46cc297aff5fd90e353341a6075f795569c853f0e318424b6e71cd70b4e
3
+ metadata.gz: 577077bbfed12648f504d29d8cfc71c3b370c629517a0e245bd9a666d59647de
4
+ data.tar.gz: c7172f53feae30e08ed8394077d091733624f0937925cf9e8c2778ef293341bf
5
5
  SHA512:
6
- metadata.gz: 45697cadc87c9a88a289994570631c68e211e85b655321cb2794f8be463b8eff44095c1e5590bee2676df88dfaa70ba7a419015e63c90407437cc0acce78f009
7
- data.tar.gz: 3721081463490e767b26950cf6cb2855887ecdf8c00f1dd33c7de5c24bc6583d5fa34df77dfe2028f103adbe162075153e44f51b02865d3361c0ef44dae7f222
6
+ metadata.gz: 1bb1ae43f1dbb544356c781c76d78abe38a006efae79379f802059d1571c75fb9e67c5ff7ae34aa5ae243591eb96c4f733167aa434683f4a5fcb6b92975ff7fb
7
+ data.tar.gz: a7b3cd0fe6804bd1ded0872b2d5cb42bb406cb5bd4572f5e40e689fe352ba2ce81162e5ceddb3cdadc9974217a37c7c4ac877ccb05012dab418fdb5d9117bee1
data/CHANGELOG.md CHANGED
@@ -0,0 +1,84 @@
1
+ ## Kanrisuru 0.5.2 (July 30, 2021) ##
2
+ * Add changelog documentation
3
+ * Update documentation table with new tested core module
4
+ * Deprecating `cpu_info` with replacement of `lscpu`. `cpu_info` will be removed in the next major release.
5
+
6
+ ## Kanrisuru 0.5.1 (July 29, 2021) ##
7
+
8
+ * Unit test cases for core module structs, constants and types.
9
+
10
+ ## Kanrisuru 0.5.0 (July 29, 2021) ##
11
+ * Add `zypper` package manager core module
12
+ * Add `dmi` core module. Support for getting hardware information from virtual and physical machines.
13
+ * Add only options for test_hosts to filter on which hosts to use for function style test cases. This is used within a test case and takes priority over command line `HOSTS=` and `EXCLUDE=` env variables.
14
+ * Add additional bit conversion string handling in the util module, such as kib, mib, and gib.
15
+ * Remove redudant namespacing in struct names, such as
16
+ `Kanrisuru::Core::Yum::YumPackageOverview`, to `Kanrisuru::Core::Yum::PackageOverview`.
17
+ * Fix backups test case for `cp` command with the correct filename.
18
+ * Use 0755 as expected numeric mode for all OS functional tests in the `mkdir` test case.
19
+ * Fix bug with `lscpu` regex match on cpus with more than 9 cores, ie `/cpu\d/` to `/cpu\d+/`
20
+
21
+
22
+ ## Kanrisuru 0.4.1 (July 26, 2021) ##
23
+ * Add `kernel_statistics` to system core module.
24
+
25
+ ## Kanrisuru 0.4.0 (July 25, 2021) ##
26
+ * Update internal exit code of command from 0, to array of accpeted exit codes, with 0 being the default value.
27
+ * Add `append_exit_code` to command, allowing additional exit codes to be considered true for `success?` return value.
28
+ * Add `@port` to `Net::SSH.start` method
29
+ * Fix test case with `host.os` return value of `opensuse_leap`.
30
+ * Add `cpu_flags` method to `cpu` module
31
+
32
+ ## Kanrisuru 0.3.2 (July 23, 2021) ##
33
+ * Fix typo from `key` to `signal` in hash fetch method.
34
+
35
+ ## Kanrisuru 0.3.1 (July 22, 2021) ##
36
+ * Add additional methods to `cpu` pulling from `lscpu` struct.
37
+ * Fix `address_size` in `cpu` method call.
38
+
39
+ ## Kanrisuru 0.3.0 (July 22, 2021) ##
40
+
41
+ * Add `lscpu` system core module
42
+ * Replace `cpu` module internal fetching of data from `cpu_info` to `lscpu` struct.
43
+
44
+ ## Kanrisuru 0.2.9 (July 20, 2021) ##
45
+
46
+ * Fix fstab entry from `entry` to `entry[:entry]` in the `for_each`iteration.
47
+
48
+ ## Kanrisuru 0.2.8 (July 20, 2021) ##
49
+
50
+ * Update gem development and runtime depedencies with stricter depencies.
51
+
52
+ ## Kanrisuru 0.2.7 (July 18, 2021) ##
53
+
54
+ * Set opensuse upstream to sles (Suse Enterprise Linux) in `os_family`
55
+
56
+ ## Kanrisuru 0.2.6 (July 17, 2021) ##
57
+ * Force "-" to "\_" from `os-release` release name in `host.os` module.
58
+
59
+ ## Kanrisuru 0.2.5 (July 16, 2021) ##
60
+ * Update gem depedencies to non-zero values
61
+ * Change summary and description fields for `apt`
62
+ * Move `normalize_size` from `apt` core module, to
63
+ `Kanrisuru::Util::Bits` class.
64
+ * Add additional test cases for `apt` core module.
65
+ * Add `-hi` to `who` command to explicility print out ip address for user.
66
+ * Update `inode?` command to execute without shell user.
67
+ * Add `yum` package manager core module
68
+
69
+ ## Kanrisuru 0.2.4 (July 10, 2021) ##
70
+ * Fix error in `ip_rule` and `ip_address` sub modules with command typo.
71
+
72
+ ## Kanrisuru 0.2.3 (July 07, 2021) ##
73
+ * Add `apt` package manager core module
74
+
75
+ ## Kanrisuru 0.2.2 (June 16, 2021) ##
76
+ * Fix `read_file_chunk` on checking bounds for start and end line values.
77
+
78
+ ## Kanrisuru 0.2.1 (June 16, 2021) ##
79
+ * Add first working release on rubygems.org
80
+
81
+ ## Kanrisuru 0.2.0 (June 16, 2021) [YANKED]##
82
+
83
+ ## Kanrisuru 0.1.0 (December 12, 2020) ##
84
+ * Initialize repository, start working on project.
data/README.md CHANGED
@@ -79,6 +79,8 @@ cluster.execute('uname') #=> {host: 'host1', result: 'Linux'}, {host: 'host2', r
79
79
  |---------------------------------------|------------------|--------------------|--------|--------------------------------------|--------|--------|--------|--------|------|----------|------|
80
80
  | **System** | | | | | | | | | | | |
81
81
  | Get CPU Info | cpu_info | lscpu | core | https://linux.die.net/man/1/lscpu | [x] | [x] | [x] | [x] | [x] | [x] | [x] |
82
+ | Get CPU architecture | lscpu | lscpu | core | https://linux.die.net/man/1/lscpu | [x] | [x] | [x] | [x] | [x] | [x] | [x] |
83
+ | Get kernel stastics | kernel_statistics | cat /proc/stat | core | | [x] | [x] | [x] | [x] | [x] | [x] | [x] |
82
84
  | Get Load Average | load_average | cat /proc/load_avg | core | | [x] | [x] | [x] | [x] | [x] | [x] | [x] |
83
85
  | Get RAM Available | free | cat /proc/meminfo | core | | [x] | [x] | [x] | [x] | [x] | [x] | [x] |
84
86
  | Get list of processes | ps | ps | core | https://linux.die.net/man/1/ps | [x] | [x] | [x] | [x] | [x] | [x] | [x] |
@@ -149,6 +151,7 @@ cluster.execute('uname') #=> {host: 'host1', result: 'Linux'}, {host: 'host2', r
149
151
  | **Packages** | | | | | | | | | | | |
150
152
  | Apt | apt | apt | core | https://linux.die.net/man/1/apt | [x] | [x] | | | | | |
151
153
  | Yum | yum | yum | core | https://linux.die.net/man/1/yum | | | [x] | [x] | [x] | | |
154
+ | Zypper | zypper | zypper | core | https://en.opensuse.org/SDB:Zypper_manual | | | | | | [x] | [x] |
152
155
 
153
156
  ## Development
154
157
 
@@ -205,6 +205,10 @@ module Kanrisuru
205
205
  end
206
206
 
207
207
  def cpu_info(spec)
208
+ Kanrisuru.logger.info {
209
+ 'DEPRECATION WARNING: cpu_info will be removed in the upcoming major release. Use lscpu instead.'
210
+ }
211
+
208
212
  name =
209
213
  case spec
210
214
  when 'sockets'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kanrisuru
4
- VERSION = '0.5.1'
4
+ VERSION = '0.5.2'
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.5.1
4
+ version: 0.5.2
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-29 00:00:00.000000000 Z
11
+ date: 2021-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec