openshift_client 0.0.8 → 0.1.0

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: 010cd4b66f106a307ae77b1304d73f4209e27225
4
- data.tar.gz: 3092e44c2f8cdb793421d7b77c1efd03dbb23a6d
3
+ metadata.gz: 78689e52fe52128cf6a5baafbb19470c61e3b23d
4
+ data.tar.gz: 4c94b74721edbbbfd1690fadaa9178c1591377fd
5
5
  SHA512:
6
- metadata.gz: 3c73ad7d5c290e95d524916c3b5c1cb06079259ca0035ea53483ef7ede31504771d71016c1e47ca5a0abc77d07da0a590e2d3240598a01a78197f3774d1d6c6d
7
- data.tar.gz: a1d8024a7ee3c604055ce93413f47ee62e1ffdd6f1276b61c4d66802cb52a38c01fd6a58cf6f70069ef08a56fb0fc448b756b75771d4e7c2b4c3f31d65c1272a
6
+ metadata.gz: 4347c050099eeada546f7f1022ab28622122bc40e876a90872b28e50556745214efe239f893c849601a731e90c33843a63367824ee6c6618d8f55c420dbf515f
7
+ data.tar.gz: a7b655b54bc0c4f473767c3c91932d66e5f41ec1e288b1f569a0efb65470e55e63285ca8e9e87dc9edd8efbd4bb54ad47478e701b70eac34f0c115741e66f309
@@ -4,3 +4,5 @@ ClassLength:
4
4
  Enabled: false
5
5
  Metrics/AbcSize:
6
6
  Enabled: false
7
+ Metrics/LineLength:
8
+ Max: 100
@@ -8,8 +8,8 @@ require 'kubeclient/common'
8
8
 
9
9
  module OpenshiftClient
10
10
  # Openshift Client
11
- class Client < Kubeclient::Common::Client
12
- attr_reader :api_endpoint
11
+ class Client
12
+ include Kubeclient::ClientMixin
13
13
 
14
14
  # Dynamically creating classes definitions (class Project, class Pod, etc.),
15
15
  # The classes are extending RecursiveOpenStruct.
@@ -20,17 +20,29 @@ module OpenshiftClient
20
20
  [OpenshiftClient.const_set(et, Class.new(RecursiveOpenStruct)), et]
21
21
  end
22
22
 
23
- def initialize(uri, version = 'v1', path = '/oapi')
24
- handle_uri(uri, path)
25
- @api_version = version
26
- @headers = {}
27
- ssl_options
23
+ Kubeclient::ClientMixin.define_entity_methods(ENTITY_TYPES)
24
+
25
+ def initialize(uri,
26
+ version = 'v1',
27
+ path = '/oapi',
28
+ ssl_options: {
29
+ client_cert: nil,
30
+ client_key: nil,
31
+ ca_file: nil,
32
+ verify_ssl: OpenSSL::SSL::VERIFY_PEER
33
+ },
34
+ auth_options: {
35
+ username: nil,
36
+ password: nil,
37
+ bearer_token: nil,
38
+ bearer_token_file: nil
39
+ }
40
+ )
41
+ initialize_client(uri, path, version, ssl_options: ssl_options, auth_options: auth_options)
28
42
  end
29
43
 
30
44
  def all_entities
31
45
  retrieve_all_entities(ENTITY_TYPES)
32
46
  end
33
-
34
- define_entity_methods(ENTITY_TYPES)
35
47
  end
36
48
  end
@@ -1,4 +1,4 @@
1
1
  # Openshift REST-API Client
2
2
  module OpenshiftClient
3
- VERSION = '0.0.8'
3
+ VERSION = '0.1.0'
4
4
  end
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency 'minitest'
25
25
  spec.add_development_dependency 'webmock'
26
26
  spec.add_development_dependency 'rubocop', '= 0.30.0'
27
- spec.add_dependency 'kubeclient', '>= 0.1.17'
27
+ spec.add_dependency 'kubeclient', '~> 0.5.0'
28
28
  spec.add_dependency 'activesupport'
29
29
  spec.add_dependency 'recursive-open-struct', '= 0.6.1'
30
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openshift_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alissa Bonas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-08 00:00:00.000000000 Z
11
+ date: 2015-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: kubeclient
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
- version: 0.1.17
89
+ version: 0.5.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ~>
95
95
  - !ruby/object:Gem::Version
96
- version: 0.1.17
96
+ version: 0.5.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: activesupport
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  version: '0'
167
167
  requirements: []
168
168
  rubyforge_project:
169
- rubygems_version: 2.4.5
169
+ rubygems_version: 2.0.14
170
170
  signing_key:
171
171
  specification_version: 4
172
172
  summary: A client for Openshift REST api