knife-google 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/README.md +155 -66
- data/knife-google.gemspec +2 -1
- data/lib/chef/knife/google_base.rb +1 -1
- data/lib/chef/knife/google_disk_create.rb +17 -9
- data/lib/chef/knife/google_disk_delete.rb +2 -2
- data/lib/chef/knife/google_disk_list.rb +8 -8
- data/lib/chef/knife/google_project_list.rb +178 -0
- data/lib/chef/knife/google_region_list.rb +125 -0
- data/lib/chef/knife/google_server_create.rb +174 -46
- data/lib/chef/knife/google_server_delete.rb +9 -13
- data/lib/chef/knife/google_server_list.rb +5 -6
- data/lib/chef/knife/google_zone_list.rb +22 -28
- data/lib/google/compute.rb +2 -1
- data/lib/google/compute/client.rb +12 -7
- data/lib/google/compute/creatable_resource_collection.rb +12 -1
- data/lib/google/compute/disk.rb +0 -2
- data/lib/google/compute/image.rb +1 -2
- data/lib/google/compute/project.rb +2 -2
- data/lib/google/compute/{kernel.rb → region.rb} +12 -1
- data/lib/google/compute/region_operation.rb +62 -0
- data/lib/google/compute/server.rb +3 -2
- data/lib/google/compute/server/attached_disk.rb +3 -3
- data/lib/google/compute/zone.rb +6 -4
- data/lib/google/compute/zone_operation.rb +11 -9
- data/lib/knife-google/version.rb +1 -1
- data/spec/chef/knife/google_base_spec.rb +4 -4
- data/spec/chef/knife/google_disk_create_spec.rb +8 -7
- data/spec/chef/knife/google_disk_delete_spec.rb +15 -16
- data/spec/chef/knife/google_disk_list_spec.rb +6 -6
- data/spec/chef/knife/google_region_list_spec.rb +32 -0
- data/spec/chef/knife/google_server_create_spec.rb +78 -44
- data/spec/chef/knife/google_server_delete_spec.rb +37 -37
- data/spec/chef/knife/google_server_list_spec.rb +8 -7
- data/spec/chef/knife/google_setup_spec.rb +1 -2
- data/spec/chef/knife/google_zone_list_spec.rb +4 -4
- data/spec/data/{compute-v1beta15.json → compute-v1.json} +700 -246
- data/spec/data/disk.json +3 -4
- data/spec/data/firewall.json +2 -2
- data/spec/data/global_operation.json +3 -3
- data/spec/data/image.json +2 -2
- data/spec/data/machine_type.json +1 -1
- data/spec/data/network.json +1 -1
- data/spec/data/project.json +1 -1
- data/spec/data/region.json +23 -0
- data/spec/data/serial_port_output.json +1 -1
- data/spec/data/server.json +7 -7
- data/spec/data/snapshot.json +2 -2
- data/spec/data/zone.json +7 -15
- data/spec/data/zone_operation.json +3 -3
- data/spec/google/compute/disk_spec.rb +32 -32
- data/spec/google/compute/firewall_spec.rb +37 -37
- data/spec/google/compute/global_operation_spec.rb +9 -9
- data/spec/google/compute/image_spec.rb +17 -17
- data/spec/google/compute/machine_type_spec.rb +7 -7
- data/spec/google/compute/network_spec.rb +14 -14
- data/spec/google/compute/project_spec.rb +17 -17
- data/spec/google/compute/region_spec.rb +51 -0
- data/spec/google/compute/server_spec.rb +35 -42
- data/spec/google/compute/snapshot_spec.rb +11 -11
- data/spec/google/compute/zone_operation_spec.rb +9 -9
- data/spec/google/compute/zone_spec.rb +7 -7
- data/spec/spec_helper.rb +1 -0
- data/spec/support/mocks.rb +10 -10
- data/spec/support/resource_examples.rb +7 -7
- data/spec/support/spec_google_base.rb +4 -0
- metadata +14 -26
- data/spec/data/kernel.json +0 -15
- data/spec/google/compute/kernel_spec.rb +0 -49
@@ -16,9 +16,9 @@ require 'spec_helper'
|
|
16
16
|
describe Google::Compute::Snapshot do
|
17
17
|
|
18
18
|
before(:each) do
|
19
|
-
@mock_api_client=
|
20
|
-
@mock_api_client.stub
|
21
|
-
Google::APIClient.stub
|
19
|
+
@mock_api_client=double(Google::APIClient, :authorization= => {}, :auto_refresh_token= => {})
|
20
|
+
@mock_api_client.stub(:discovered_api).and_return(mock_compute)
|
21
|
+
Google::APIClient.stub(:new).and_return(@mock_api_client)
|
22
22
|
end
|
23
23
|
|
24
24
|
let(:client) do
|
@@ -29,8 +29,8 @@ describe Google::Compute::Snapshot do
|
|
29
29
|
|
30
30
|
it '#get should return an individual snapshot' do
|
31
31
|
@mock_api_client.should_receive(:execute).
|
32
|
-
with(:api_method=>mock_compute.snapshots.get,
|
33
|
-
:parameters=>{'snapshot'=>'mock-snapshot', :project=>'mock-project'}
|
32
|
+
with(:api_method => mock_compute.snapshots.get,
|
33
|
+
:parameters => {'snapshot' => 'mock-snapshot', :project => 'mock-project'}, :body_object => nil).
|
34
34
|
and_return(mock_response(Google::Compute::Snapshot))
|
35
35
|
snapshot = client.snapshots.get('mock-snapshot')
|
36
36
|
snapshot.should be_a_kind_of Google::Compute::Snapshot
|
@@ -39,9 +39,9 @@ describe Google::Compute::Snapshot do
|
|
39
39
|
|
40
40
|
it '#list should return an array of snapshots' do
|
41
41
|
@mock_api_client.should_receive(:execute).
|
42
|
-
with(:api_method=>mock_compute.snapshots.list,
|
43
|
-
:parameters=>{:project=>'mock-project'}
|
44
|
-
and_return(mock_response(Google::Compute::Snapshot,true))
|
42
|
+
with(:api_method => mock_compute.snapshots.list,
|
43
|
+
:parameters => {:project => 'mock-project'}, :body_object => nil).
|
44
|
+
and_return(mock_response(Google::Compute::Snapshot, true))
|
45
45
|
snapshots = client.snapshots.list
|
46
46
|
snapshots.should_not be_empty
|
47
47
|
snapshots.all?{|s| s.is_a?(Google::Compute::Snapshot)}.should be_true
|
@@ -49,9 +49,9 @@ describe Google::Compute::Snapshot do
|
|
49
49
|
|
50
50
|
it '#delete should delete an existing snapshot' do
|
51
51
|
@mock_api_client.should_receive(:execute).
|
52
|
-
with(:api_method=>mock_compute.snapshots.delete,
|
53
|
-
:parameters=>{:project=>'mock-project','snapshot'=>'mock-snapshot'}
|
52
|
+
with(:api_method => mock_compute.snapshots.delete,
|
53
|
+
:parameters => {:project => 'mock-project', 'snapshot' => 'mock-snapshot'}, :body_object => nil).
|
54
54
|
and_return(mock_response(Google::Compute::GlobalOperation))
|
55
|
-
o =
|
55
|
+
o = client.snapshots.delete('mock-snapshot')
|
56
56
|
end
|
57
57
|
end
|
@@ -16,9 +16,9 @@ require 'spec_helper'
|
|
16
16
|
describe Google::Compute::ZoneOperation do
|
17
17
|
|
18
18
|
before(:each) do
|
19
|
-
@mock_api_client=
|
20
|
-
@mock_api_client.stub
|
21
|
-
Google::APIClient.stub
|
19
|
+
@mock_api_client=double(Google::APIClient, :authorization= => {}, :auto_refresh_token= => {})
|
20
|
+
@mock_api_client.stub(:discovered_api).and_return(mock_compute)
|
21
|
+
Google::APIClient.stub(:new).and_return(@mock_api_client)
|
22
22
|
end
|
23
23
|
|
24
24
|
let(:client) do
|
@@ -29,8 +29,8 @@ describe Google::Compute::ZoneOperation do
|
|
29
29
|
|
30
30
|
it '#list should return an array of zone operations' do
|
31
31
|
@mock_api_client.should_receive(:execute).
|
32
|
-
with(:api_method=>mock_compute.zone_operations.list,
|
33
|
-
:parameters=>{ :project=>'mock-project'}
|
32
|
+
with(:api_method => mock_compute.zone_operations.list,
|
33
|
+
:parameters => { :project => 'mock-project'}, :body_object => nil).
|
34
34
|
and_return(mock_response(Google::Compute::ZoneOperation, true))
|
35
35
|
|
36
36
|
operations = client.zoneOperations.list
|
@@ -40,8 +40,8 @@ describe Google::Compute::ZoneOperation do
|
|
40
40
|
|
41
41
|
it '#get should return an individual zone operation' do
|
42
42
|
@mock_api_client.should_receive(:execute).
|
43
|
-
with(:api_method=>mock_compute.zone_operations.get,
|
44
|
-
:parameters=>{'zoneOperation'=>'mock-zone-operation', :project=>'mock-project'}
|
43
|
+
with(:api_method => mock_compute.zone_operations.get,
|
44
|
+
:parameters => {'zoneOperation' => 'mock-zone-operation', :project => 'mock-project'}, :body_object => nil).
|
45
45
|
and_return(mock_response(Google::Compute::ZoneOperation))
|
46
46
|
|
47
47
|
operation = client.zoneOperations.get('mock-zone-operation')
|
@@ -53,8 +53,8 @@ describe Google::Compute::ZoneOperation do
|
|
53
53
|
|
54
54
|
it '#delete should delete an existing zone operation' do
|
55
55
|
@mock_api_client.should_receive(:execute).
|
56
|
-
with(:api_method=>mock_compute.zone_operations.delete,
|
57
|
-
:parameters=>{'zoneOperation'=>'mock-zone-operation', :project=>'mock-project'}
|
56
|
+
with(:api_method => mock_compute.zone_operations.delete,
|
57
|
+
:parameters => {'zoneOperation' => 'mock-zone-operation', :project => 'mock-project'}, :body_object => nil).
|
58
58
|
and_return(mock_response)
|
59
59
|
|
60
60
|
client.zoneOperations.delete('mock-zone-operation')
|
@@ -17,9 +17,9 @@ require 'spec_helper'
|
|
17
17
|
describe Google::Compute::Zone do
|
18
18
|
|
19
19
|
before(:each) do
|
20
|
-
@mock_api_client=
|
21
|
-
@mock_api_client.stub
|
22
|
-
Google::APIClient.stub
|
20
|
+
@mock_api_client=double(Google::APIClient, :authorization= => {}, :auto_refresh_token= => {})
|
21
|
+
@mock_api_client.stub(:discovered_api).and_return(mock_compute)
|
22
|
+
Google::APIClient.stub(:new).and_return(@mock_api_client)
|
23
23
|
end
|
24
24
|
|
25
25
|
let(:client) do
|
@@ -30,8 +30,8 @@ describe Google::Compute::Zone do
|
|
30
30
|
|
31
31
|
it '#get should return an individual zone' do
|
32
32
|
@mock_api_client.should_receive(:execute).
|
33
|
-
with(:api_method=>mock_compute.zones.get,
|
34
|
-
:parameters=>{'zone'=>'mock-zone', :project=>'mock-project'}
|
33
|
+
with(:api_method => mock_compute.zones.get,
|
34
|
+
:parameters => {'zone' => 'mock-zone', :project => 'mock-project'}, :body_object => nil).
|
35
35
|
and_return(mock_response(Google::Compute::Zone))
|
36
36
|
zone = client.zones.get('mock-zone')
|
37
37
|
zone.should be_a_kind_of Google::Compute::Zone
|
@@ -40,8 +40,8 @@ describe Google::Compute::Zone do
|
|
40
40
|
|
41
41
|
it '#list should return an array of zones' do
|
42
42
|
@mock_api_client.should_receive(:execute).
|
43
|
-
with(:api_method=>mock_compute.zones.list,
|
44
|
-
:parameters=>{ :project=>'mock-project'}
|
43
|
+
with(:api_method => mock_compute.zones.list,
|
44
|
+
:parameters => { :project => 'mock-project'}, :body_object => nil).
|
45
45
|
and_return(mock_response(Google::Compute::Zone, true))
|
46
46
|
zones = client.zones.list
|
47
47
|
zones.should_not be_empty
|
data/spec/spec_helper.rb
CHANGED
@@ -33,6 +33,7 @@ require 'chef/knife/google_server_list'
|
|
33
33
|
require 'chef/knife/google_disk_list'
|
34
34
|
require 'chef/knife/google_disk_create'
|
35
35
|
require 'chef/knife/google_disk_delete'
|
36
|
+
require 'chef/knife/google_region_list'
|
36
37
|
require 'chef/knife/google_zone_list'
|
37
38
|
require 'chef/knife/google_setup'
|
38
39
|
|
data/spec/support/mocks.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# Copyright 2013 Google Inc. All Rights Reserved.
|
2
|
-
#
|
2
|
+
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
5
5
|
# You may obtain a copy of the License at
|
6
|
-
#
|
6
|
+
#
|
7
7
|
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
8
|
+
#
|
9
9
|
# Unless required by applicable law or agreed to in writing, software
|
10
10
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
11
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
@@ -26,9 +26,9 @@ module Mocks
|
|
26
26
|
def mock_data_file(klass)
|
27
27
|
class_name = klass.name.split('::').last.snake_case
|
28
28
|
if class_name == "instance"
|
29
|
-
json_file = File.expand_path(File.join(SPEC_DATA_FOLDER
|
29
|
+
json_file = File.expand_path(File.join(SPEC_DATA_FOLDER, 'server.json'))
|
30
30
|
else
|
31
|
-
json_file = File.expand_path(File.join(SPEC_DATA_FOLDER
|
31
|
+
json_file = File.expand_path(File.join(SPEC_DATA_FOLDER, class_name + '.json'))
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -43,13 +43,13 @@ module Mocks
|
|
43
43
|
def mock_compute
|
44
44
|
@compute ||=
|
45
45
|
begin
|
46
|
-
data_file = File.join(SPEC_DATA_FOLDER,'compute-
|
47
|
-
u = Addressable::URI.parse('URI:https://www.googleapis.com/discovery/v1/apis/compute/
|
48
|
-
compute = Google::APIClient::API.new(u,MultiJson.load(File.read(data_file)))
|
46
|
+
data_file = File.join(SPEC_DATA_FOLDER, 'compute-v1.json')
|
47
|
+
u = Addressable::URI.parse('URI:https://www.googleapis.com/discovery/v1/apis/compute/v1/rest')
|
48
|
+
compute = Google::APIClient::API.new(u, MultiJson.load(File.read(data_file)))
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
def mock_response(klass=nil,list = false)
|
52
|
+
def mock_response(klass=nil, list = false)
|
53
53
|
body = if klass.nil?
|
54
54
|
nil
|
55
55
|
elsif list
|
@@ -57,6 +57,6 @@ module Mocks
|
|
57
57
|
else
|
58
58
|
mock_data(klass)
|
59
59
|
end
|
60
|
-
|
60
|
+
double(klass, :success? => true, :response => double('some', :body => body))
|
61
61
|
end
|
62
62
|
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Copyright 2013 Google Inc. All Rights Reserved.
|
2
|
-
#
|
2
|
+
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
5
5
|
# You may obtain a copy of the License at
|
6
|
-
#
|
6
|
+
#
|
7
7
|
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
8
|
+
#
|
9
9
|
# Unless required by applicable law or agreed to in writing, software
|
10
10
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
11
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
@@ -30,14 +30,14 @@ shared_examples Google::Compute::Resource do
|
|
30
30
|
resource.id.should be_a_kind_of(Integer)
|
31
31
|
end
|
32
32
|
|
33
|
-
it "#creation_timestamp should have a
|
33
|
+
it "#creation_timestamp should have a valid creation timestamp" do
|
34
34
|
unless resource.creation_timestamp.nil?
|
35
35
|
resource.creation_timestamp.should be_a_kind_of(Time)
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
39
|
it "#type should have same type is class" do
|
40
|
-
# TODO(erjohnso): {global,zone}operations are not resources
|
40
|
+
# TODO(erjohnso): {global, zone}operations are not resources
|
41
41
|
# and instances are servers
|
42
42
|
if ["globaloperation", "zoneoperation"].include? resource.class.class_name
|
43
43
|
resource.type.downcase.should eq("operation")
|
@@ -49,8 +49,8 @@ shared_examples Google::Compute::Resource do
|
|
49
49
|
end
|
50
50
|
|
51
51
|
it "should have a valid description" do
|
52
|
-
# TODO(erjohnso): {global,zone}operations are not resources
|
53
|
-
# mock-{zone,global}-operation
|
52
|
+
# TODO(erjohnso): {global, zone}operations are not resources
|
53
|
+
# mock-{zone, global}-operation
|
54
54
|
unless resource.name.split('-').last == "operation"
|
55
55
|
resource.description.should_not be_nil
|
56
56
|
end
|
@@ -34,6 +34,10 @@ module SpecData
|
|
34
34
|
@disk ||= Google::Compute::Disk.new(load_json("disk.json"))
|
35
35
|
end
|
36
36
|
|
37
|
+
def stored_region
|
38
|
+
@region ||= Google::Compute::Region.new(load_json("region.json"))
|
39
|
+
end
|
40
|
+
|
37
41
|
def stored_zone
|
38
42
|
@zone ||= Google::Compute::Zone.new(load_json("zone.json"))
|
39
43
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-google
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Chiraq Jog
|
@@ -13,12 +12,11 @@ authors:
|
|
13
12
|
autorequire:
|
14
13
|
bindir: bin
|
15
14
|
cert_chain: []
|
16
|
-
date:
|
15
|
+
date: 2014-02-17 00:00:00.000000000 Z
|
17
16
|
dependencies:
|
18
17
|
- !ruby/object:Gem::Dependency
|
19
18
|
name: chef
|
20
19
|
requirement: !ruby/object:Gem::Requirement
|
21
|
-
none: false
|
22
20
|
requirements:
|
23
21
|
- - ! '>='
|
24
22
|
- !ruby/object:Gem::Version
|
@@ -26,7 +24,6 @@ dependencies:
|
|
26
24
|
type: :runtime
|
27
25
|
prerelease: false
|
28
26
|
version_requirements: !ruby/object:Gem::Requirement
|
29
|
-
none: false
|
30
27
|
requirements:
|
31
28
|
- - ! '>='
|
32
29
|
- !ruby/object:Gem::Version
|
@@ -34,7 +31,6 @@ dependencies:
|
|
34
31
|
- !ruby/object:Gem::Dependency
|
35
32
|
name: google-api-client
|
36
33
|
requirement: !ruby/object:Gem::Requirement
|
37
|
-
none: false
|
38
34
|
requirements:
|
39
35
|
- - ! '>='
|
40
36
|
- !ruby/object:Gem::Version
|
@@ -42,7 +38,6 @@ dependencies:
|
|
42
38
|
type: :runtime
|
43
39
|
prerelease: false
|
44
40
|
version_requirements: !ruby/object:Gem::Requirement
|
45
|
-
none: false
|
46
41
|
requirements:
|
47
42
|
- - ! '>='
|
48
43
|
- !ruby/object:Gem::Version
|
@@ -50,7 +45,6 @@ dependencies:
|
|
50
45
|
- !ruby/object:Gem::Dependency
|
51
46
|
name: multi_json
|
52
47
|
requirement: !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
48
|
requirements:
|
55
49
|
- - ! '>='
|
56
50
|
- !ruby/object:Gem::Version
|
@@ -58,7 +52,6 @@ dependencies:
|
|
58
52
|
type: :runtime
|
59
53
|
prerelease: false
|
60
54
|
version_requirements: !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
55
|
requirements:
|
63
56
|
- - ! '>='
|
64
57
|
- !ruby/object:Gem::Version
|
@@ -66,7 +59,6 @@ dependencies:
|
|
66
59
|
- !ruby/object:Gem::Dependency
|
67
60
|
name: mixlib-config
|
68
61
|
requirement: !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
62
|
requirements:
|
71
63
|
- - ! '>='
|
72
64
|
- !ruby/object:Gem::Version
|
@@ -74,7 +66,6 @@ dependencies:
|
|
74
66
|
type: :runtime
|
75
67
|
prerelease: false
|
76
68
|
version_requirements: !ruby/object:Gem::Requirement
|
77
|
-
none: false
|
78
69
|
requirements:
|
79
70
|
- - ! '>='
|
80
71
|
- !ruby/object:Gem::Version
|
@@ -82,7 +73,6 @@ dependencies:
|
|
82
73
|
- !ruby/object:Gem::Dependency
|
83
74
|
name: rspec
|
84
75
|
requirement: !ruby/object:Gem::Requirement
|
85
|
-
none: false
|
86
76
|
requirements:
|
87
77
|
- - ! '>='
|
88
78
|
- !ruby/object:Gem::Version
|
@@ -90,7 +80,6 @@ dependencies:
|
|
90
80
|
type: :development
|
91
81
|
prerelease: false
|
92
82
|
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
none: false
|
94
83
|
requirements:
|
95
84
|
- - ! '>='
|
96
85
|
- !ruby/object:Gem::Version
|
@@ -98,7 +87,6 @@ dependencies:
|
|
98
87
|
- !ruby/object:Gem::Dependency
|
99
88
|
name: rake
|
100
89
|
requirement: !ruby/object:Gem::Requirement
|
101
|
-
none: false
|
102
90
|
requirements:
|
103
91
|
- - ! '>='
|
104
92
|
- !ruby/object:Gem::Version
|
@@ -106,7 +94,6 @@ dependencies:
|
|
106
94
|
type: :development
|
107
95
|
prerelease: false
|
108
96
|
version_requirements: !ruby/object:Gem::Requirement
|
109
|
-
none: false
|
110
97
|
requirements:
|
111
98
|
- - ! '>='
|
112
99
|
- !ruby/object:Gem::Version
|
@@ -114,7 +101,6 @@ dependencies:
|
|
114
101
|
- !ruby/object:Gem::Dependency
|
115
102
|
name: simplecov
|
116
103
|
requirement: !ruby/object:Gem::Requirement
|
117
|
-
none: false
|
118
104
|
requirements:
|
119
105
|
- - ! '>='
|
120
106
|
- !ruby/object:Gem::Version
|
@@ -122,13 +108,12 @@ dependencies:
|
|
122
108
|
type: :development
|
123
109
|
prerelease: false
|
124
110
|
version_requirements: !ruby/object:Gem::Requirement
|
125
|
-
none: false
|
126
111
|
requirements:
|
127
112
|
- - ! '>='
|
128
113
|
- !ruby/object:Gem::Version
|
129
114
|
version: '0'
|
130
115
|
description: Google Compute Engine Support for Chef's Knife Command
|
131
|
-
email:
|
116
|
+
email: paulrossman@google.com
|
132
117
|
executables: []
|
133
118
|
extensions: []
|
134
119
|
extra_rdoc_files:
|
@@ -148,6 +133,8 @@ files:
|
|
148
133
|
- lib/chef/knife/google_disk_create.rb
|
149
134
|
- lib/chef/knife/google_disk_delete.rb
|
150
135
|
- lib/chef/knife/google_disk_list.rb
|
136
|
+
- lib/chef/knife/google_project_list.rb
|
137
|
+
- lib/chef/knife/google_region_list.rb
|
151
138
|
- lib/chef/knife/google_server_create.rb
|
152
139
|
- lib/chef/knife/google_server_delete.rb
|
153
140
|
- lib/chef/knife/google_server_list.rb
|
@@ -163,12 +150,13 @@ files:
|
|
163
150
|
- lib/google/compute/firewall.rb
|
164
151
|
- lib/google/compute/global_operation.rb
|
165
152
|
- lib/google/compute/image.rb
|
166
|
-
- lib/google/compute/kernel.rb
|
167
153
|
- lib/google/compute/listable_resource_collection.rb
|
168
154
|
- lib/google/compute/machine_type.rb
|
169
155
|
- lib/google/compute/mixins/utils.rb
|
170
156
|
- lib/google/compute/network.rb
|
171
157
|
- lib/google/compute/project.rb
|
158
|
+
- lib/google/compute/region.rb
|
159
|
+
- lib/google/compute/region_operation.rb
|
172
160
|
- lib/google/compute/resource.rb
|
173
161
|
- lib/google/compute/resource_collection.rb
|
174
162
|
- lib/google/compute/server.rb
|
@@ -185,21 +173,22 @@ files:
|
|
185
173
|
- spec/chef/knife/google_disk_create_spec.rb
|
186
174
|
- spec/chef/knife/google_disk_delete_spec.rb
|
187
175
|
- spec/chef/knife/google_disk_list_spec.rb
|
176
|
+
- spec/chef/knife/google_region_list_spec.rb
|
188
177
|
- spec/chef/knife/google_server_create_spec.rb
|
189
178
|
- spec/chef/knife/google_server_delete_spec.rb
|
190
179
|
- spec/chef/knife/google_server_list_spec.rb
|
191
180
|
- spec/chef/knife/google_setup_spec.rb
|
192
181
|
- spec/chef/knife/google_zone_list_spec.rb
|
193
182
|
- spec/data/client.json
|
194
|
-
- spec/data/compute-
|
183
|
+
- spec/data/compute-v1.json
|
195
184
|
- spec/data/disk.json
|
196
185
|
- spec/data/firewall.json
|
197
186
|
- spec/data/global_operation.json
|
198
187
|
- spec/data/image.json
|
199
|
-
- spec/data/kernel.json
|
200
188
|
- spec/data/machine_type.json
|
201
189
|
- spec/data/network.json
|
202
190
|
- spec/data/project.json
|
191
|
+
- spec/data/region.json
|
203
192
|
- spec/data/serial_port_output.json
|
204
193
|
- spec/data/server.json
|
205
194
|
- spec/data/snapshot.json
|
@@ -209,10 +198,10 @@ files:
|
|
209
198
|
- spec/google/compute/firewall_spec.rb
|
210
199
|
- spec/google/compute/global_operation_spec.rb
|
211
200
|
- spec/google/compute/image_spec.rb
|
212
|
-
- spec/google/compute/kernel_spec.rb
|
213
201
|
- spec/google/compute/machine_type_spec.rb
|
214
202
|
- spec/google/compute/network_spec.rb
|
215
203
|
- spec/google/compute/project_spec.rb
|
204
|
+
- spec/google/compute/region_spec.rb
|
216
205
|
- spec/google/compute/server_spec.rb
|
217
206
|
- spec/google/compute/snapshot_spec.rb
|
218
207
|
- spec/google/compute/zone_operation_spec.rb
|
@@ -223,26 +212,25 @@ files:
|
|
223
212
|
- spec/support/spec_google_base.rb
|
224
213
|
homepage: http://wiki.opscode.com/display/chef
|
225
214
|
licenses: []
|
215
|
+
metadata: {}
|
226
216
|
post_install_message:
|
227
217
|
rdoc_options: []
|
228
218
|
require_paths:
|
229
219
|
- lib
|
230
220
|
required_ruby_version: !ruby/object:Gem::Requirement
|
231
|
-
none: false
|
232
221
|
requirements:
|
233
222
|
- - ! '>='
|
234
223
|
- !ruby/object:Gem::Version
|
235
224
|
version: '0'
|
236
225
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
237
|
-
none: false
|
238
226
|
requirements:
|
239
227
|
- - ! '>='
|
240
228
|
- !ruby/object:Gem::Version
|
241
229
|
version: '0'
|
242
230
|
requirements: []
|
243
231
|
rubyforge_project:
|
244
|
-
rubygems_version: 1.
|
232
|
+
rubygems_version: 2.1.11
|
245
233
|
signing_key:
|
246
|
-
specification_version:
|
234
|
+
specification_version: 4
|
247
235
|
summary: Manage Google Compute Engine servers, disks, and zones
|
248
236
|
test_files: []
|