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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4518c38f5cfa3151e496874550c7badcaf202e36a59f7168722d28e072930bf
4
- data.tar.gz: b01171b4177de79dc5c0caee00d184751bccb3270075e1771c87cee11272c1c4
3
+ metadata.gz: c719423e417fb7847575e78926d2388dce8ac8a443cad32e84f4b1be1f9540f1
4
+ data.tar.gz: fb7e68e0487cd55bad902ae1880151f7cf3c50f638ce92b5e2d9cf5946af5e9d
5
5
  SHA512:
6
- metadata.gz: 852a69608ad9da9e29db165ab5a9724e97f7795da2d80067abcde1a32375ebbab8f6be2e386c0805818f6109e8d33e8d3d0dba7b9035d4b8f8dcbfc28be51b6b
7
- data.tar.gz: 4bd0627dff3a674147b1faaa48d19ff0d03d15a0d58b4e3799f568a9589a905c17777e8215357f1dcc5e2f113c8c1ac3a73312e236fd4d21c9f34cd13271cbd3
6
+ metadata.gz: a9664df0200404f4ebef1393271b7c612cac6c4d095bd53b097490492d10a568287245e96533f1923bde6ba25c626c08adde91cc93117b89511142d2ffceed4d
7
+ data.tar.gz: c810f35c1223dbc0bec1036c0609c9df16cb6986de1202c4e516f91c60a2995583da2f9937673740d6e8b9c78f1c88745228a9f50275295c8d86d37b0f63c97d
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  #! /usr/bin/env ruby
2
2
  # -*- ruby -*-
3
3
 
4
- PATH = [
4
+ PATH = ENV['PATH'] = [
5
5
  File.expand_path(File.join(__dir__, 'internal')),
6
6
  ENV['PATH']
7
7
  ].join(':')
@@ -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
- operation.call(*args)
161
- rescue ArgumentError => error
162
- UsageError.(operation, error)
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
- namespace.const_get(constant).call(*args)
173
- rescue ArgumentError => error
174
- UsageError.(namespace.const_get(constant), error)
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
- namespace.singleton_method(
183
- SelectFromMenu.(namespace.name, namespace.singleton_methods.select { |method| method =~ /^[[:upper:]]/ })
184
- ).call(*args)
185
- rescue TTY::Reader::InputInterrupt
186
- puts
187
- namespace
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, vritual_machine)}.curry
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstrap-azure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8.pre
4
+ version: 0.4.11.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Olstrom
metadata.gz.sig CHANGED
Binary file