kubecontrol 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78e24714ab4e03f425c86d2391a2952e34acacda235c312dcd66e49632c9b9a9
4
- data.tar.gz: b3e7aac86f9053f4bb266f8701a1f1b756a98011ba43f1b3e398a99f342982ea
3
+ metadata.gz: 14b4e86b403c443d36e72fbca50d3cfeef2d52d10a6ac31ecb94fc2369f913bc
4
+ data.tar.gz: b182ddd30d09958107086280311400eed3defc49516af9679e402bd3c4c1694d
5
5
  SHA512:
6
- metadata.gz: b3fb70722607a2c54b322f13c49e5960fcc428f34e9682af831f4a006ae3863196b648c174fe92ab09317ba9013dd0204de523b35cf85cf3fe9006fa647e36da
7
- data.tar.gz: c741103c7f8f6797706f6156368b8bbef588fe8c1876f4fd44ec639b830e44d655256d3fa67a410c2ebd9374588560f86bb0c1efc21d8a3961a9e02814ac21a4
6
+ metadata.gz: 2287557dc4d48bda13f633667b6f27a8702cf55a27caf50e27ae480278c5dcef5c1f25fe32c41dcabe15a107dedb7ba37f5b94bf2cd3db738069c7f7b6d810de
7
+ data.tar.gz: b5d93d17773fa35b9225edbd395f1c2d97178bc78e6e52ce66b8e347b135ffccefa9d9c96e6c030018434b0227b7f0f34c64e10f9432140c40256f3ca71c34f4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kubecontrol (0.1.2)
4
+ kubecontrol (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -18,7 +18,7 @@ module Kubecontrol
18
18
  pods_array = get_pods_result.split
19
19
  pods_array.shift 5 # remove output table headers
20
20
  pods_array.each_slice(5).map do |pod_data|
21
- Pod.new(*pod_data, namespace: namespace, client: self)
21
+ Pod.new(*pod_data, namespace, self)
22
22
  end
23
23
  end
24
24
 
@@ -4,7 +4,7 @@ module Kubecontrol
4
4
 
5
5
  attr_reader :name, :ready, :status, :restarts, :age, :namespace, :client
6
6
 
7
- def initialize(name, ready, status, restarts, age, namespace:, client:)
7
+ def initialize(name, ready, status, restarts, age, namespace, client)
8
8
  @name = name
9
9
  @ready = ready
10
10
  @status = status
@@ -1,3 +1,3 @@
1
1
  module Kubecontrol
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
@@ -10,7 +10,7 @@ RSpec.describe Kubecontrol::Pod do
10
10
  let(:client) { Kubecontrol::Client.new }
11
11
 
12
12
  describe '#initialize' do
13
- subject { Kubecontrol::Pod.new(pod_name, pod_ready, pod_status, pod_restarts, pod_age, namespace: namespace, client: client) }
13
+ subject { Kubecontrol::Pod.new(pod_name, pod_ready, pod_status, pod_restarts, pod_age, namespace, client) }
14
14
 
15
15
  it 'sets the pod name field' do
16
16
  expect(subject.name).to eq pod_name
@@ -42,7 +42,7 @@ RSpec.describe Kubecontrol::Pod do
42
42
  end
43
43
 
44
44
  describe '#running?' do
45
- subject { Kubecontrol::Pod.new(pod_name, pod_ready, pod_status, pod_restarts, pod_age).running? }
45
+ subject { Kubecontrol::Pod.new(pod_name, pod_ready, pod_status, pod_restarts, pod_age, namespace, client).running? }
46
46
 
47
47
  context 'is running' do
48
48
  it { is_expected.to eq true }
@@ -56,7 +56,7 @@ RSpec.describe Kubecontrol::Pod do
56
56
  end
57
57
 
58
58
  describe '#stopped?' do
59
- subject { Kubecontrol::Pod.new(pod_name, pod_ready, pod_status, pod_restarts, pod_age).stopped? }
59
+ subject { Kubecontrol::Pod.new(pod_name, pod_ready, pod_status, pod_restarts, pod_age, namespace, client).stopped? }
60
60
 
61
61
  context 'is running' do
62
62
  it { is_expected.to eq false }
@@ -76,7 +76,7 @@ RSpec.describe Kubecontrol::Pod do
76
76
  let(:std_err) { '' }
77
77
  let(:status_code) { 0 }
78
78
  let(:kubectl_command_response) { [std_out, std_err, status_code] }
79
- let(:pod) { Kubecontrol::Pod.new(pod_name, pod_ready, pod_status, pod_restarts, pod_age, namespace: namespace, client: client) }
79
+ let(:pod) { Kubecontrol::Pod.new(pod_name, pod_ready, pod_status, pod_restarts, pod_age, namespace, client) }
80
80
 
81
81
  subject { pod.exec(command) }
82
82
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubecontrol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Adkins