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 +4 -4
- data/README.md +17 -17
- data/lib/rancher-metadata/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38c14d5544623d8b458cf07d755076ee1ab17d3b
|
4
|
+
data.tar.gz: 26551f94119a6e2138bf661117d288448f9cd169
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|