knife-google 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/CHANGELOG.md +13 -1
- data/README.md +2 -0
- data/lib/chef/knife/cloud/google_service.rb +4 -7
- data/lib/knife-google/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36684ea65bbfde94beaff417f61006fda2cefd7c
|
4
|
+
data.tar.gz: 696513f5211c2d6c4f5142341e420a9c3e3bd439
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef1d17c627a99ea3fc7ac644b8dfa03a333549fab8bb3c4c9d04458b208906f18ce62f2e487b83185e7e7d188aa3caaf61db4c16acfd40074ab2b3b72d432ac1
|
7
|
+
data.tar.gz: 179c9bc2c36cb8963d92e29f22cf7baa4e3f62c60ea4cf6e6a2a43fa5cc3d2d0d7da25b677a3cc5413c205e24bfa4733a7feee4efe5a4d0d3e405d8e67ba8137
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,18 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [
|
3
|
+
## [3.1.1](https://github.com/chef/knife-google/tree/v3.1.1)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/chef/knife-google/compare/v3.1.0...v3.1.1)
|
6
|
+
|
7
|
+
**Closed issues:**
|
8
|
+
|
9
|
+
- Can't Modify Frozen String [\#118](https://github.com/chef/knife-google/issues/118)
|
4
10
|
|
11
|
+
**Merged pull requests:**
|
12
|
+
|
13
|
+
- Fix for \#118 [\#119](https://github.com/chef/knife-google/pull/119) ([jjasghar](https://github.com/jjasghar))
|
14
|
+
|
15
|
+
## [v3.1.0](https://github.com/chef/knife-google/tree/v3.1.0) (2016-11-08)
|
5
16
|
[Full Changelog](https://github.com/chef/knife-google/compare/v3.0.0...v3.1.0)
|
6
17
|
|
7
18
|
**Closed issues:**
|
@@ -10,6 +21,7 @@
|
|
10
21
|
|
11
22
|
**Merged pull requests:**
|
12
23
|
|
24
|
+
- v3.1.0 [\#115](https://github.com/chef/knife-google/pull/115) ([jjasghar](https://github.com/jjasghar))
|
13
25
|
- Move deps to the Gemfile [\#114](https://github.com/chef/knife-google/pull/114) ([tas50](https://github.com/tas50))
|
14
26
|
- make public\_ip work for any case 'none' at 'instance\_access\_configs\_for' [\#106](https://github.com/chef/knife-google/pull/106) ([abhishekkr](https://github.com/abhishekkr))
|
15
27
|
|
data/README.md
CHANGED
@@ -58,6 +58,8 @@ Google Cloud API. The auth library expects that there is a JSON credentials file
|
|
58
58
|
The easiest way to create this is to download and install the [Google Cloud SDK](https://cloud.google.com/sdk/) and run the
|
59
59
|
`gcloud auth login` command which will create the credentials file for you.
|
60
60
|
|
61
|
+
**Update:** `gcloud auth login` no longer writes application default credentials. Please run `gcloud auth application-default login` for appropriate application credentials file.
|
62
|
+
|
61
63
|
If you already have a file you'd like to use that is in a different location, set the
|
62
64
|
`GOOGLE_APPLICATION_CREDENTIALS` environment variable with the full path to that file.
|
63
65
|
|
@@ -245,11 +245,10 @@ class Chef::Knife::Cloud
|
|
245
245
|
end
|
246
246
|
|
247
247
|
def valid_public_ip_setting?(public_ip)
|
248
|
-
|
249
|
-
|
250
|
-
if public_ip.nil? || public_ip == "ephemeral" || public_ip == "none"
|
248
|
+
case
|
249
|
+
when public_ip.nil? || public_ip.match(/(ephemeral|none)/i)
|
251
250
|
true
|
252
|
-
|
251
|
+
when valid_ip_address?(public_ip)
|
253
252
|
true
|
254
253
|
else
|
255
254
|
false
|
@@ -409,9 +408,7 @@ class Chef::Knife::Cloud
|
|
409
408
|
end
|
410
409
|
|
411
410
|
def instance_access_configs_for(public_ip)
|
412
|
-
public_ip.
|
413
|
-
|
414
|
-
return [] if public_ip.nil? || public_ip == "none"
|
411
|
+
return [] if public_ip.nil? || public_ip.match(/none/i)
|
415
412
|
|
416
413
|
access_config = Google::Apis::ComputeV1::AccessConfig.new
|
417
414
|
access_config.name = "External NAT"
|
data/lib/knife-google/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-google
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chiraq Jog
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date:
|
16
|
+
date: 2017-02-17 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: chef
|