cloudstrap-azure 0.4.8.pre → 0.4.11.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/command/cloudstrap-azure +1 -1
- data/command/internal/cloudstrap-azure.deploy +19 -13
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c719423e417fb7847575e78926d2388dce8ac8a443cad32e84f4b1be1f9540f1
|
4
|
+
data.tar.gz: fb7e68e0487cd55bad902ae1880151f7cf3c50f638ce92b5e2d9cf5946af5e9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9664df0200404f4ebef1393271b7c612cac6c4d095bd53b097490492d10a568287245e96533f1923bde6ba25c626c08adde91cc93117b89511142d2ffceed4d
|
7
|
+
data.tar.gz: c810f35c1223dbc0bec1036c0609c9df16cb6986de1202c4e516f91c60a2995583da2f9937673740d6e8b9c78f1c88745228a9f50275295c8d86d37b0f63c97d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/command/cloudstrap-azure
CHANGED
@@ -157,9 +157,11 @@ BindOperation = ->(namespace, operation) {
|
|
157
157
|
constant = FormatMethodName.(operation)
|
158
158
|
namespace.const_set(constant, operation)
|
159
159
|
namespace.define_singleton_method(operation.name) do |*args|
|
160
|
-
|
161
|
-
|
162
|
-
|
160
|
+
begin
|
161
|
+
operation.call(*args)
|
162
|
+
rescue ArgumentError => error
|
163
|
+
UsageError.(operation, error)
|
164
|
+
end
|
163
165
|
end
|
164
166
|
}.curry
|
165
167
|
|
@@ -169,9 +171,11 @@ AddConstantCalls = ->(namespace, blacklist: []) {
|
|
169
171
|
.reject { |constant| namespace.singleton_methods.include?(constant) }
|
170
172
|
.reject { |constant| blacklist.include?(constant) }
|
171
173
|
.map { |constant| namespace.define_singleton_method(constant) do |*args|
|
172
|
-
|
173
|
-
|
174
|
-
|
174
|
+
begin
|
175
|
+
namespace.const_get(constant).call(*args)
|
176
|
+
rescue ArgumentError => error
|
177
|
+
UsageError.(namespace.const_get(constant), error)
|
178
|
+
end
|
175
179
|
end}}
|
176
180
|
|
177
181
|
AddInteractiveCalls = ->(namespace, **options) {
|
@@ -179,12 +183,14 @@ AddInteractiveCalls = ->(namespace, **options) {
|
|
179
183
|
return :call if namespace.singleton_methods.include?(:call)
|
180
184
|
|
181
185
|
namespace.define_singleton_method(:call) do |*args|
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
186
|
+
begin
|
187
|
+
namespace.singleton_method(
|
188
|
+
SelectFromMenu.(namespace.name, namespace.singleton_methods.select { |method| method =~ /^[[:upper:]]/ })
|
189
|
+
).call(*args)
|
190
|
+
rescue TTY::Reader::InputInterrupt
|
191
|
+
puts
|
192
|
+
namespace
|
193
|
+
end
|
188
194
|
end
|
189
195
|
}
|
190
196
|
|
@@ -413,7 +419,7 @@ RebootOnce = ->(resource_group, virtual_machine) {
|
|
413
419
|
return if virtual_machine.tags['cloudstrap.reboot'] == 'finished'
|
414
420
|
ApplyTag.('cloudstrap.reboot', 'started', resource_group, virtual_machine)
|
415
421
|
RestartVirtualMachine.(resource_group, virtual_machine)
|
416
|
-
ApplyTag.('cloudstrap.reboot', 'finished', resource_group,
|
422
|
+
ApplyTag.('cloudstrap.reboot', 'finished', resource_group, virtual_machine)}.curry
|
417
423
|
|
418
424
|
FindNetworkInterface = ->(resource_group) {
|
419
425
|
virtual_machine = KubernetesAgents.(resource_group).sort_by(&:name).first
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|