specinfra 2.83.1 → 2.83.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
  SHA1:
3
- metadata.gz: 7f98623e6d0a234bd7fe4efe0a86e0cdc270a415
4
- data.tar.gz: 42c023dec145584e4bc648127adc088b88f2f727
3
+ metadata.gz: eb64f982a1db9c07f65e29062f40f76d2dbd06cc
4
+ data.tar.gz: 6e35fcccef10ee85f2798d5cd55dd35415a97007
5
5
  SHA512:
6
- metadata.gz: 05045bced49f00191b843da8fc16339f4209d543c04ae652a886feabe0ec346179da570168e4f16e0ddbe2c4a8e743203c49bc8665ce7bed3e64148f17917f53
7
- data.tar.gz: fbb932813642ede8d94a754bd5a631ed8fe404b6489c2acc3c3539212638a0fe8c9cd53320d6996e105e5bec92fae48ca9e4387c35f7178451551fcf2c9b461d
6
+ metadata.gz: 667d26731d168fd905f3235f135bb7cf12098908b4114e3a7b2938518e5fb2e2574a12ae9f85006856a1ced27e708070d144f1e7ec299160482daadd9b91c247
7
+ data.tar.gz: cfe99453702b4169825605f8c98fba7bd7cbf35331df9fc142ee824acafb433a9c71800104e95446b8fa080b6797617bddf7d8629b1fb22fe24f78f9e48f36ae
@@ -8,6 +8,10 @@ class Specinfra::Command::Darwin::Base::Inventory < Specinfra::Command::Base::In
8
8
  'false'
9
9
  end
10
10
 
11
+ def get_kernel
12
+ 'false'
13
+ end
14
+
11
15
  def get_hostname
12
16
  'hostname -s'
13
17
  end
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.83.1"
2
+ VERSION = "2.83.2"
3
3
  end
@@ -0,0 +1,16 @@
1
+ require 'spec_helper'
2
+
3
+ describe Specinfra::HostInventory::Kernel do
4
+ describe "get" do
5
+ let(:host_inventory) { Specinfra::HostInventory.instance }
6
+ let(:command_class) { Specinfra::Command::Darwin::Base }
7
+ let(:error_message) { "get_kernel is not implemented in #{command_class}" }
8
+ let(:kernel_inventory) { Specinfra::HostInventory::Kernel.new(host_inventory) }
9
+ let(:result) { kernel_inventory.get }
10
+ example "it includes the value of os_info[:arch] in the key 'machine'" do
11
+ expect(result).to include(
12
+ "machine" => host_inventory.backend.os_info[:arch]
13
+ )
14
+ end
15
+ end
16
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.83.1
4
+ version: 2.83.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-26 00:00:00.000000000 Z
11
+ date: 2022-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp
@@ -600,6 +600,7 @@ files:
600
600
  - spec/host_inventory/base/group_spec.rb
601
601
  - spec/host_inventory/base/user_spec.rb
602
602
  - spec/host_inventory/darwin/filesystem_spec.rb
603
+ - spec/host_inventory/darwin/kernel_spec.rb
603
604
  - spec/host_inventory/freebsd/filesystem_spec.rb
604
605
  - spec/host_inventory/linux/block_device_spec.rb
605
606
  - spec/host_inventory/linux/cpu_spec.rb
@@ -742,6 +743,7 @@ test_files:
742
743
  - spec/host_inventory/base/group_spec.rb
743
744
  - spec/host_inventory/base/user_spec.rb
744
745
  - spec/host_inventory/darwin/filesystem_spec.rb
746
+ - spec/host_inventory/darwin/kernel_spec.rb
745
747
  - spec/host_inventory/freebsd/filesystem_spec.rb
746
748
  - spec/host_inventory/linux/block_device_spec.rb
747
749
  - spec/host_inventory/linux/cpu_spec.rb