rancher-metadata 0.17.5 → 0.17.6

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: 5467d2c11bfe48b395bd83e5f825160da89c95d0
4
- data.tar.gz: e577c1fe121ed79030fc9d51a58924640beb4694
3
+ metadata.gz: 38c14d5544623d8b458cf07d755076ee1ab17d3b
4
+ data.tar.gz: 26551f94119a6e2138bf661117d288448f9cd169
5
5
  SHA512:
6
- metadata.gz: 2944b89d04b249a8f4cf8d31370384ca271c108e97dc4f46942ac5318ac704050adf45188b3dfa74a21dc10b1b3b0603deaf7a10b09aaa328337ed889e00d8c1
7
- data.tar.gz: 93f57158527773f4157f04a71b36d0cc9ecd3f32fbef56f11f0f6b43646eaa9440f57437ea9c927c937cb2ef98228ab24b21fde0891593147bfd9baf607ed9be
6
+ metadata.gz: 24e2407029c80893a31afe03985e11053bc1b85e1ec38fb4367293ad4985f5d1e929ed84e4215bfcac6c382b170ceb8f34b59874bafb42295933ba418b2ea06f
7
+ data.tar.gz: 7d29af0125a22396877c5191971b34fc2e0febc5714f19857179454d23f5c4ab8af6e78a718a63795ad52729bdc594c13951ef09f1d87e96d1f946c4f95908af
data/README.md CHANGED
@@ -35,39 +35,39 @@ puts("Service scale size: #{api.get_service_scale_size}")
35
35
  Look up all containers:
36
36
  ```
37
37
  api.get_containers.each do |container|
38
- puts(container)
38
+ puts(container.inspect)
39
39
  end
40
40
  ```
41
41
 
42
42
  Look up all services:
43
43
  ```
44
44
  api.get_services.each do |service|
45
- puts(service)
45
+ puts(service.inspect)
46
46
  end
47
47
  ```
48
48
 
49
49
  Look up all stacks:
50
50
  ```
51
51
  api.get_stacks.each do |stack|:
52
- puts(stack)
52
+ puts(stack.inspect)
53
53
  end
54
54
  ```
55
55
 
56
56
  Look up all hosts:
57
57
  ```
58
58
  api.get_hosts.each do |host|:
59
- puts(host)
59
+ puts(host.inspect)
60
60
  end
61
61
  ```
62
62
 
63
63
  Look up current container:
64
64
  ```
65
- puts(api.get_container)
65
+ puts(api.get_container.inspect)
66
66
  ```
67
67
 
68
68
  Look up a container by name:
69
69
  ```
70
- puts(api.get_container("my_container"))
70
+ puts(api.get_container("my_container").inspect)
71
71
  ```
72
72
 
73
73
  Look up a container's IP by name:
@@ -77,65 +77,65 @@ puts("A container IP #{api.get_container_ip("container_name")}")
77
77
 
78
78
  Look up current service:
79
79
  ```
80
- puts(api.get_service)
80
+ puts(api.get_service.inspect)
81
81
  ```
82
82
 
83
83
  Look up a specific service running in the current stack:
84
84
  ```
85
- puts(api.get_service({:service_name => 'my_service'}))
85
+ puts(api.get_service({:service_name => 'my_service'}).inspect)
86
86
  ```
87
87
 
88
88
  Look up a specific service running in another stack:
89
89
  ```
90
- puts(api.get_service({:service_name => 'my_service', :stack_name => 'my_stack'}))
90
+ puts(api.get_service({:service_name => 'my_service', :stack_name => 'my_stack'}).inspect)
91
91
  ```
92
92
 
93
93
  look up a specific service's containers running in the current stack:
94
94
  ```
95
95
  api.get_service_containers({:service_name => 'my_service'}).each do |container|
96
- puts(container)
96
+ puts(container.inspect)
97
97
  end
98
98
  ```
99
99
 
100
100
  Look up a specific service's containers running in an another stack:
101
101
  ```
102
102
  api.get_service_containers({:service_name => 'my_service', :stack_name => 'my_stack'}).each do |container|
103
- puts(container)
103
+ puts(container.inspect)
104
104
  end
105
105
  ```
106
106
 
107
107
  Look up current stack:
108
108
  ```
109
- puts(api.get_stack)
109
+ puts(api.get_stack.inspect)
110
110
  ```
111
111
 
112
112
  Look up a specific stack by name:
113
113
  ```
114
- puts(api.get_stack("my_stack"))
114
+ puts(api.get_stack("my_stack").inspect)
115
115
  ```
116
116
 
117
117
  Look up services running in current stack:
118
118
  ```
119
119
  api.get_stack_services.each do |service|
120
- puts(service)
120
+ puts(service.inspect)
121
121
  end
122
122
  ```
123
123
 
124
124
  Look up services running in another stack:
125
125
  ```
126
126
  api.get_stack_services("my_stack").each do |service|
127
- puts(service)
127
+ puts(service.inspect)
128
128
  end
129
129
  ```
130
130
 
131
131
  Look up current host:
132
132
  ```
133
- puts(api.get_host())
133
+ puts(api.get_host.inspect)
134
134
  ```
135
135
 
136
136
  Look up a specific host by name:
137
137
  ```
138
- puts(api.get_host("my_host"))
138
+ puts(api.get_host("my_host").inspect)
139
139
  ```
140
140
 
141
141
  Returns true if the container is running in Rancher-managed network:
@@ -5,7 +5,7 @@
5
5
  #
6
6
 
7
7
  module RancherMetadata
8
- VERSION = "0.17.5"
8
+ VERSION = "0.17.6"
9
9
 
10
10
  def self.version
11
11
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rancher-metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.5
4
+ version: 0.17.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Cerutti