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 +4 -4
- data/lib/gclouder/resource.rb +2 -2
- data/lib/gclouder/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: 983ef436ec9447f24a0c9a1b49971b287335c9cc
|
4
|
+
data.tar.gz: ef378d2525eb87e5a8155c71e9297fc42eee42fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a5949911e1382ac8633646068514dbeb4580f0d6b7e0ed3021529acad61f1ec63d0560325765fd1552671822ff7dc0102613af1b067f3fa1c3830118e79d6f9
|
7
|
+
data.tar.gz: 16799610787255a6cdab40f9e9828281c338c7dfc14f6562a6686984b96defa063f0f2f9974f2666c839872a0cc4224daea2bbba499ffec272d04a2e38d99b85
|
data/lib/gclouder/resource.rb
CHANGED
@@ -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:
|
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:
|
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]
|
data/lib/gclouder/version.rb
CHANGED