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 +4 -4
- data/.rubocop.yml +2 -0
- data/lib/openshift_client.rb +21 -9
- data/lib/openshift_client/version.rb +1 -1
- data/openshift_client.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78689e52fe52128cf6a5baafbb19470c61e3b23d
|
4
|
+
data.tar.gz: 4c94b74721edbbbfd1690fadaa9178c1591377fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4347c050099eeada546f7f1022ab28622122bc40e876a90872b28e50556745214efe239f893c849601a731e90c33843a63367824ee6c6618d8f55c420dbf515f
|
7
|
+
data.tar.gz: a7b655b54bc0c4f473767c3c91932d66e5f41ec1e288b1f569a0efb65470e55e63285ca8e9e87dc9edd8efbd4bb54ad47478e701b70eac34f0c115741e66f309
|
data/.rubocop.yml
CHANGED
data/lib/openshift_client.rb
CHANGED
@@ -8,8 +8,8 @@ require 'kubeclient/common'
|
|
8
8
|
|
9
9
|
module OpenshiftClient
|
10
10
|
# Openshift Client
|
11
|
-
class Client
|
12
|
-
|
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
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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
|
data/openshift_client.gemspec
CHANGED
@@ -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', '
|
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
|
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-
|
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.
|
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.
|
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.
|
169
|
+
rubygems_version: 2.0.14
|
170
170
|
signing_key:
|
171
171
|
specification_version: 4
|
172
172
|
summary: A client for Openshift REST api
|