kubeclient 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of kubeclient might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGJhNjYwNWQ1OThkODNjMGE3NmM5ODNmNGMxZDk3YjQ0MjA0Y2ExNA==
4
+ MmU2NTVjYTgwYmZhYTZjMmYzYzAyYjkxY2RiMDI1ZGFlNDk3MmJhOQ==
5
5
  data.tar.gz: !binary |-
6
- NGNjNTY1MjZiODZiOWY3YjQ5MDczYTg0YzVhMmUxZWJmNjZhM2U4Yw==
6
+ MzFhNmU3ZGJkMjY2NWU5ZWIyODUxNTk4ZDJiYjhmYjc0ZjY1MGUzMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2Y3MjMwZDhhY2Q1N2Q1ZDc3ZDFiZmNhZTI5Y2ZhMzFjYjNhN2JkZDMyMzZj
10
- OTIxYmNhZmE5NDViZTRiZWZkYjZmNWQxYWEzOTA3ZTljM2FlMTZhZmVkNjcw
11
- YTI2NzkwMWZjNWUxZmY2ZDA1OTQ1MDU0ZmY1YzFkOWE3MDViMjQ=
9
+ OWNhMmM5NjE2MDk2MTRmOWE1MzMzNjVmODczNmQxNDk4Zjc1NzM2MTZkMjY5
10
+ NTQ3MTk5MzIzMTFiZmZhODMzZWQwNWNmOGMwYTM0YWNlMTc3YmNiMjk4Yzk4
11
+ ZGQxMTk0MzEwMTExYTgwYzgyY2Q3Y2E5NmMyNGQ5NzA5NjYzNjQ=
12
12
  data.tar.gz: !binary |-
13
- ZjRiNTk5YzE3NTIwMmU2YmUzOWIzMjFmMWUxYzI4ZDQzNTdjNWUzNGY1M2Q5
14
- Njc0MTY1Y2M0ZjJiMTY4NGE4ZTlkYTg1NjFhNjcwMzYxOGY3MTAzYjRjYzQ3
15
- YTJlY2MyY2JiMWY1MzVlNWRlYTQ3ODU2NWNiMzZiMTIxNDExMzE=
13
+ M2Q5NTkwMDE1MzlkY2VjZGVjMDNiMjI3NDQ4NzZiNzQ4NTQ2ODY2Y2UxYWIw
14
+ M2NhZjQ5NTY1NzY4YWRkMjY5ZjE0ZTEyOTUxZWEzNWI5ODM1ZmRhYmQ2Zjk4
15
+ Y2VjMWJkYjhkZjU5ZjI2NDMwZWUwMWZmZTQ5NTFhZDk4ZTVlZmU=
data/README.md CHANGED
@@ -63,11 +63,16 @@ Input parameter - object of type Service, Pod, ReplicationController
63
63
  `service.selector.name = "redis"`<br>
64
64
  `service.selector.role = "master"`<br>
65
65
  `client.create_service service`<br>
66
- `<br>
66
+ <br>
67
67
 
68
68
  5. Update entity (update pod, service, replication controller) <br>
69
69
  Input parameter - object of type Service, Pod, ReplicationController <br>
70
- `client.update_service rc1`
70
+ `client.update_service service1`
71
+ <br>
72
+
73
+ 6. Get all entities - Returns a hash with 4 keys (node, service,pod, replication_controller). Each key points to an EntityList of same type. This method
74
+ is a convenience method instead of calling each entity's get method separately. <br>
75
+ `client.get_all_entities`
71
76
 
72
77
  ## Contributing
73
78
 
@@ -22,8 +22,9 @@ module Kubeclient
22
22
  @api_endpoint = api_endpoint+version
23
23
  end
24
24
 
25
- #todo should a new one be created for every request?
25
+ private
26
26
  def rest_client
27
+ #todo should a new one be created for every request?
27
28
  RestClient::Resource.new(@api_endpoint)
28
29
  end
29
30
 
@@ -132,7 +133,7 @@ module Kubeclient
132
133
  def get_all_entities
133
134
  result_hash = {}
134
135
  ENTITIES.each do |entity|
135
- #todo method call for get each entities
136
+ # method call for get each entities
136
137
  # build hash of entity name to array of the entities
137
138
  method_name = "get_#{entity.underscore.pluralize}"
138
139
  key_name = entity.underscore
@@ -1,3 +1,3 @@
1
1
  module Kubeclient
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubeclient
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
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-01-04 00:00:00.000000000 Z
11
+ date: 2015-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler