kanrisuru 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kanrisuru/remote/cpu.rb +13 -1
- data/lib/kanrisuru/version.rb +1 -1
- data/spec/functional/core/system_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61ecfd6fb284ffd9a3f3866846d89c8e92ac114ce49838a0613e4df29c69e5cc
|
4
|
+
data.tar.gz: 1a782563313983a22f55481d2c6bdb156c312d7ac09e98fbd2d79cc1c8776832
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0253078dba72eb5b276fa42e45afe5e3f397d54192c64dd53fd18c2e9104aa08d6c258f123f613c5987db8efddefc4a068e5dd73c5b9596550b6f5c52f1b1780'
|
7
|
+
data.tar.gz: 743ab69e8e58486655d0eeb0549e4490b40ebda8192a0df04ee6bca3f1bdbdf4e9c885e09f61339dffbfe4685125b3e2ed327850d9a356033178547ebbd49ca2
|
data/lib/kanrisuru/remote/cpu.rb
CHANGED
@@ -76,7 +76,19 @@ module Kanrisuru
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def address_size
|
79
|
-
@cpu_architecture.
|
79
|
+
@cpu_architecture.address_size
|
80
|
+
end
|
81
|
+
|
82
|
+
def cpu_mhz
|
83
|
+
@cpu_architecture.cpu_mhz
|
84
|
+
end
|
85
|
+
|
86
|
+
def cpu_max_mhz
|
87
|
+
@cpu_architecture.cpu_max_mhz
|
88
|
+
end
|
89
|
+
|
90
|
+
def cpu_min_mhz
|
91
|
+
@cpu_architecture.cpu_min_mhz
|
80
92
|
end
|
81
93
|
|
82
94
|
def hypervisor
|
data/lib/kanrisuru/version.rb
CHANGED
@@ -18,6 +18,12 @@ RSpec.describe Kanrisuru::Core::System do
|
|
18
18
|
host.disconnect
|
19
19
|
end
|
20
20
|
|
21
|
+
it 'gets cpu details' do
|
22
|
+
result = host.lscpu
|
23
|
+
expect(result).to be_success
|
24
|
+
expect(result.data).to be_instance_of(Kanrisuru::Core::System::CPUArchitecture)
|
25
|
+
end
|
26
|
+
|
21
27
|
it 'gets environment variables' do
|
22
28
|
result = host.load_env
|
23
29
|
|