gclouder 0.3.7 → 0.3.8

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: 0cf98ff6883a3772bbfe3314aea9af351dc57659
4
- data.tar.gz: 3858a01258677b7570dbe7322c7968e7ccab24ee
3
+ metadata.gz: 983ef436ec9447f24a0c9a1b49971b287335c9cc
4
+ data.tar.gz: ef378d2525eb87e5a8155c71e9297fc42eee42fa
5
5
  SHA512:
6
- metadata.gz: cd8a304884b126938f1de35b78c6a1183f5d8fe900b3620d1af16cfc896656c9ef22368ac7403eb30343e546c2134f6baad57afe9130a5efba60fe6e23b67ee4
7
- data.tar.gz: 783bcec4ebd7874d343666121b2455b20d5e19b6d7ca5d1b9ca9d90957cf717ddd99c18b75f78ac18baac490b6db6c96ac73e55a3df2a12d82ea2fa81f5c2da2
6
+ metadata.gz: 2a5949911e1382ac8633646068514dbeb4580f0d6b7e0ed3021529acad61f1ec63d0560325765fd1552671822ff7dc0102613af1b067f3fa1c3830118e79d6f9
7
+ data.tar.gz: 16799610787255a6cdab40f9e9828281c338c7dfc14f6562a6686984b96defa063f0f2f9974f2666c839872a0cc4224daea2bbba499ffec272d04a2e38d99b85
@@ -35,13 +35,13 @@ module GClouder
35
35
  end
36
36
 
37
37
  def self.ensure(resource, name, args = nil, project_id: nil, extra_info: nil, silent: false, indent: 3, filter_key: "name", filter_value: nil, filter: "#{filter_key} ~ ^#{filter_value || name}$")
38
- return if resource?(resource, name, project_id: project_id, extra_info: extra_info, silent: silent, indent: indent, filter_key: "name", filter_value: nil, filter: "#{filter_key} ~ ^#{filter_value || name}$")
38
+ return if resource?(resource, name, project_id: project_id, extra_info: extra_info, silent: silent, indent: indent, filter_key: filter_key, filter_value: filter_value, filter: filter)
39
39
  feedback("add", resource, name, extra_info: extra_info, indent: indent, silent: silent)
40
40
  gcloud "#{resource} create #{name} #{args}", project_id: project_id, silent: silent
41
41
  end
42
42
 
43
43
  def self.purge(resource, name, args = nil, project_id: nil, silent: false, indent: 3, filter_key: "name", filter_value: nil, filter: "#{filter_key} ~ ^#{filter_value || name}$")
44
- return unless resource?(resource, name, project_id: project_id, silent: true, indent: indent, filter_key: "name", filter_value: nil, filter: "#{filter_key} ~ ^#{filter_value || name}$")
44
+ return unless resource?(resource, name, project_id: project_id, silent: true, indent: indent, filter_key: filter_key, filter_value: filter_value, filter: filter)
45
45
  extra_info = "[skipped] (--purge not specified)" unless cli_args[:purge]
46
46
  feedback("remove", resource, name, extra_info: extra_info, indent: indent, silent: silent)
47
47
  gcloud "#{resource} delete #{name} #{args}", project_id: project_id if cli_args[:purge]
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  module GClouder
4
- VERSION = "0.3.7"
4
+ VERSION = "0.3.8"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gclouder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Wilson