vagrant-google 0.2.2 → 0.2.3

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: cc34cd087ca2be06cd2f4c4ebf0299397e2ead9b
4
- data.tar.gz: 80878f7ea508eeeadbc61b122ca2e68f86729dcd
3
+ metadata.gz: 37c9594b020e4a74df8366e5e1f3fcdf0485c44d
4
+ data.tar.gz: 085e323ca610795a1159b8d2594028d962d6feae
5
5
  SHA512:
6
- metadata.gz: 9c5bfaab84c111b6619d163d566b329786520d4e7010444e75c6455e69a9256c3fc8abb7f150853df2d2eb88a853e2937d318aa4982bbd4a254d1a5002028b32
7
- data.tar.gz: fd31180ce6ce43321b4005406d6ea34d967dcfad11cbea9db1c8406b889e8b2bb86d22793d36bfc1c7683b5323165e27606632ce19df64843f2e64a3a8ac3c6d
6
+ metadata.gz: 3c67a320ce73ced7004bfcd893463ff28f2d652aa6ef73f69758a48a72bf04b684d8ae23fd93db8b46a052ec05cd345c92dc24f7c1f567611c9171e79ff27d03
7
+ data.tar.gz: d0b4c0d7a71fb51663f6d327d4010704c0b59f70f19e594d3c52a4a8f55c5376500a733d66462dc342b375a4c4fca84d43cc9e15b73d63aff46474325d975428
data/.rubocop_todo.yml CHANGED
@@ -1,5 +1,6 @@
1
- # This configuration was generated by `rubocop --auto-gen-config`
2
- # on 2015-07-13 18:02:44 +0000 using RuboCop version 0.31.0.
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2016-01-03 11:45:58 +0100 using RuboCop version 0.35.1.
3
4
  # The point is for the user to remove these configuration records
4
5
  # one by one as the offenses are removed from the code base.
5
6
  # Note that changes in the inspected code, or installation of new
@@ -7,57 +8,69 @@
7
8
 
8
9
  # Offense count: 2
9
10
  Lint/LiteralInCondition:
10
- Enabled: false
11
+ Exclude:
12
+ - 'lib/vagrant-google/action/run_instance.rb'
13
+ - 'lib/vagrant-google/action/start_instance.rb'
14
+
15
+ # Offense count: 1
16
+ Lint/NestedMethodDefinition:
17
+ Exclude:
18
+ - 'lib/vagrant-google/action/sync_folders.rb'
11
19
 
12
20
  # Offense count: 3
13
21
  Lint/ParenthesesAsGroupedExpression:
14
- Enabled: false
22
+ Exclude:
23
+ - 'tasks/acceptance.rake'
15
24
 
16
25
  # Offense count: 1
17
26
  Lint/RescueException:
18
- Enabled: false
27
+ Exclude:
28
+ - 'lib/vagrant-google/action/read_state.rb'
19
29
 
20
- # Offense count: 4
30
+ # Offense count: 6
21
31
  # Cop supports --auto-correct.
32
+ # Configuration parameters: IgnoreEmptyBlocks.
22
33
  Lint/UnusedBlockArgument:
23
- Enabled: false
24
-
25
- # Offense count: 14
34
+ Exclude:
35
+ - 'lib/vagrant-google/action/sync_folders.rb'
36
+ - 'test/acceptance/skeletons/generic/Vagrantfile'
37
+ - 'test/acceptance/skeletons/multi_instance/Vagrantfile'
38
+ - 'test/acceptance/skeletons/preemptible/Vagrantfile'
39
+ - 'test/acceptance/skeletons/scopes/Vagrantfile'
40
+
41
+ # Offense count: 16
26
42
  # Cop supports --auto-correct.
43
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
27
44
  Lint/UnusedMethodArgument:
28
45
  Enabled: false
29
46
 
30
- # Offense count: 2
47
+ # Offense count: 1
31
48
  Lint/UselessAssignment:
32
- Enabled: false
49
+ Exclude:
50
+ - 'lib/vagrant-google/plugin.rb'
33
51
 
34
- # Offense count: 12
52
+ # Offense count: 11
35
53
  Metrics/AbcSize:
36
- Max: 155
54
+ Max: 133
37
55
 
38
- # Offense count: 2
56
+ # Offense count: 1
39
57
  # Configuration parameters: CountComments.
40
58
  Metrics/ClassLength:
41
- Max: 156
59
+ Max: 146
42
60
 
43
- # Offense count: 4
61
+ # Offense count: 5
44
62
  Metrics/CyclomaticComplexity:
45
63
  Max: 22
46
64
 
47
- # Offense count: 62
65
+ # Offense count: 68
48
66
  # Configuration parameters: AllowURI, URISchemes.
49
67
  Metrics/LineLength:
50
- Max: 132
68
+ Max: 131
51
69
 
52
- # Offense count: 15
70
+ # Offense count: 14
53
71
  # Configuration parameters: CountComments.
54
72
  Metrics/MethodLength:
55
- Max: 124
56
-
57
- # Offense count: 1
58
- # Configuration parameters: CountComments.
59
- Metrics/ModuleLength:
60
- Max: 141
73
+ Max: 35
61
74
 
62
75
  # Offense count: 4
63
76
  Metrics/PerceivedComplexity:
@@ -65,17 +78,37 @@ Metrics/PerceivedComplexity:
65
78
 
66
79
  # Offense count: 1
67
80
  Style/AccessorMethodName:
68
- Enabled: false
81
+ Exclude:
82
+ - 'test/unit/common/config_test.rb'
69
83
 
70
- # Offense count: 7
84
+ # Offense count: 8
71
85
  # Cop supports --auto-correct.
72
86
  # Configuration parameters: EnforcedStyle, SupportedStyles.
73
87
  Style/AndOr:
74
- Enabled: false
88
+ Exclude:
89
+ - 'example_boxes/gce-test/Vagrantfile'
90
+ - 'lib/vagrant-google/config.rb'
91
+ - 'test/unit/common/config_test.rb'
75
92
 
76
- # Offense count: 18
93
+ # Offense count: 19
94
+ # Configuration parameters: Exclude.
77
95
  Style/Documentation:
78
- Enabled: false
96
+ Exclude:
97
+ - 'spec/**/*'
98
+ - 'test/**/*'
99
+ - 'lib/vagrant-google.rb'
100
+ - 'lib/vagrant-google/action.rb'
101
+ - 'lib/vagrant-google/action/message_already_created.rb'
102
+ - 'lib/vagrant-google/action/message_not_created.rb'
103
+ - 'lib/vagrant-google/action/message_will_not_destroy.rb'
104
+ - 'lib/vagrant-google/action/warn_networks.rb'
105
+ - 'lib/vagrant-google/action/warn_ssh_keys.rb'
106
+ - 'lib/vagrant-google/config.rb'
107
+ - 'lib/vagrant-google/errors.rb'
108
+ - 'lib/vagrant-google/plugin.rb'
109
+ - 'lib/vagrant-google/provider.rb'
110
+ - 'lib/vagrant-google/util/timer.rb'
111
+ - 'lib/vagrant-google/version.rb'
79
112
 
80
113
  # Offense count: 1
81
114
  # Cop supports --auto-correct.
@@ -87,37 +120,51 @@ Style/DotPosition:
87
120
  # Cop supports --auto-correct.
88
121
  # Configuration parameters: EnforcedStyle, SupportedStyles.
89
122
  Style/EmptyLinesAroundBlockBody:
90
- Enabled: false
123
+ Exclude:
124
+ - 'example_boxes/gce-test/Vagrantfile'
125
+ - 'lib/vagrant-google/action/start_instance.rb'
126
+ - 'tasks/acceptance.rake'
127
+ - 'test/acceptance/shared/context_google.rb'
128
+ - 'test/acceptance/skeletons/generic/Vagrantfile'
129
+ - 'test/acceptance/skeletons/preemptible/Vagrantfile'
130
+ - 'test/acceptance/skeletons/scopes/Vagrantfile'
131
+ - 'test/unit/common/config_test.rb'
91
132
 
92
133
  # Offense count: 1
93
134
  # Cop supports --auto-correct.
94
135
  # Configuration parameters: EnforcedStyle, SupportedStyles.
95
136
  Style/EmptyLinesAroundClassBody:
96
- Enabled: false
137
+ Exclude:
138
+ - 'lib/vagrant-google/action/stop_instance.rb'
97
139
 
98
140
  # Offense count: 1
99
141
  # Cop supports --auto-correct.
100
142
  # Configuration parameters: EnforcedStyle, SupportedStyles.
101
143
  Style/EmptyLinesAroundModuleBody:
102
- Enabled: false
144
+ Exclude:
145
+ - 'lib/vagrant-google/action/stop_instance.rb'
103
146
 
104
147
  # Offense count: 2
105
148
  # Configuration parameters: Exclude.
106
149
  Style/FileName:
107
- Enabled: false
150
+ Exclude:
151
+ - 'lib/vagrant-google.rb'
152
+ - 'vagrant-spec.config.rb'
108
153
 
109
154
  # Offense count: 2
110
155
  # Cop supports --auto-correct.
111
156
  # Configuration parameters: EnforcedStyle, SupportedStyles.
112
157
  Style/FirstParameterIndentation:
113
- Enabled: false
158
+ Exclude:
159
+ - 'lib/vagrant-google/action/run_instance.rb'
114
160
 
115
- # Offense count: 1
161
+ # Offense count: 2
116
162
  # Configuration parameters: MinBodyLength.
117
163
  Style/GuardClause:
118
- Enabled: false
164
+ Exclude:
165
+ - 'lib/vagrant-google/action/run_instance.rb'
119
166
 
120
- # Offense count: 33
167
+ # Offense count: 40
121
168
  # Cop supports --auto-correct.
122
169
  # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
123
170
  Style/HashSyntax:
@@ -126,44 +173,70 @@ Style/HashSyntax:
126
173
  # Offense count: 2
127
174
  # Cop supports --auto-correct.
128
175
  Style/InfiniteLoop:
129
- Enabled: false
176
+ Exclude:
177
+ - 'lib/vagrant-google/action/run_instance.rb'
178
+ - 'lib/vagrant-google/action/start_instance.rb'
130
179
 
131
- # Offense count: 3
180
+ # Offense count: 1
132
181
  # Cop supports --auto-correct.
133
- Style/MethodCallParentheses:
134
- Enabled: false
182
+ Style/LeadingCommentSpace:
183
+ Exclude:
184
+ - 'lib/vagrant-google/action/sync_folders.rb'
135
185
 
136
- # Offense count: 19
186
+ # Offense count: 1
137
187
  # Cop supports --auto-correct.
138
- Style/NegatedIf:
139
- Enabled: false
188
+ # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
189
+ Style/Next:
190
+ Exclude:
191
+ - 'lib/vagrant-google/action/sync_folders.rb'
140
192
 
141
193
  # Offense count: 1
142
194
  # Cop supports --auto-correct.
143
195
  Style/NilComparison:
144
- Enabled: false
196
+ Exclude:
197
+ - 'test/unit/common/config_test.rb'
145
198
 
146
199
  # Offense count: 1
147
200
  # Cop supports --auto-correct.
148
- Style/Not:
149
- Enabled: false
201
+ Style/PerlBackrefs:
202
+ Exclude:
203
+ - 'lib/vagrant-google/action/sync_folders.rb'
150
204
 
151
205
  # Offense count: 2
152
206
  # Cop supports --auto-correct.
153
207
  # Configuration parameters: AllowMultipleReturnValues.
154
208
  Style/RedundantReturn:
155
- Enabled: false
209
+ Exclude:
210
+ - 'lib/vagrant-google/action/read_ssh_info.rb'
211
+ - 'lib/vagrant-google/action/read_state.rb'
156
212
 
157
213
  # Offense count: 1
158
214
  # Cop supports --auto-correct.
159
215
  Style/RedundantSelf:
160
- Enabled: false
216
+ Exclude:
217
+ - 'lib/vagrant-google/config.rb'
161
218
 
162
- # Offense count: 8
219
+ # Offense count: 1
220
+ # Cop supports --auto-correct.
221
+ # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
222
+ Style/RegexpLiteral:
223
+ Exclude:
224
+ - 'lib/vagrant-google/action/sync_folders.rb'
225
+
226
+ # Offense count: 10
163
227
  # Cop supports --auto-correct.
164
228
  # Configuration parameters: EnforcedStyle, SupportedStyles.
165
229
  Style/SignalException:
166
- Enabled: false
230
+ Exclude:
231
+ - 'lib/vagrant-google/action/run_instance.rb'
232
+ - 'lib/vagrant-google/action/sync_folders.rb'
233
+ - 'lib/vagrant-google/config.rb'
234
+ - 'lib/vagrant-google/plugin.rb'
235
+ - 'test/acceptance/provider/halt_spec.rb'
236
+ - 'test/acceptance/provider/multi_instance_spec.rb'
237
+ - 'test/acceptance/provider/preemptible_spec.rb'
238
+ - 'test/acceptance/provider/reload_spec.rb'
239
+ - 'test/acceptance/provider/scopes_spec.rb'
167
240
 
168
241
  # Offense count: 2
169
242
  # Cop supports --auto-correct.
@@ -171,7 +244,7 @@ Style/SignalException:
171
244
  Style/SpaceAroundEqualsInParameterDefault:
172
245
  EnforcedStyle: no_space
173
246
 
174
- # Offense count: 1
247
+ # Offense count: 3
175
248
  # Cop supports --auto-correct.
176
249
  # Configuration parameters: EnforcedStyle, SupportedStyles.
177
250
  Style/SpaceBeforeBlockBraces:
@@ -180,15 +253,22 @@ Style/SpaceBeforeBlockBraces:
180
253
  # Offense count: 1
181
254
  # Cop supports --auto-correct.
182
255
  Style/SpaceBeforeComma:
256
+ Exclude:
257
+ - 'Gemfile'
258
+
259
+ # Offense count: 2
260
+ # Cop supports --auto-correct.
261
+ # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
262
+ Style/SpaceInsideBlockBraces:
183
263
  Enabled: false
184
264
 
185
- # Offense count: 342
265
+ # Offense count: 384
186
266
  # Cop supports --auto-correct.
187
267
  # Configuration parameters: EnforcedStyle, SupportedStyles.
188
268
  Style/StringLiterals:
189
269
  Enabled: false
190
270
 
191
- # Offense count: 6
271
+ # Offense count: 7
192
272
  # Cop supports --auto-correct.
193
273
  # Configuration parameters: EnforcedStyle, SupportedStyles.
194
274
  Style/StringLiteralsInInterpolation:
@@ -198,4 +278,5 @@ Style/StringLiteralsInInterpolation:
198
278
  # Cop supports --auto-correct.
199
279
  # Configuration parameters: IgnoredMethods.
200
280
  Style/SymbolProc:
201
- Enabled: false
281
+ Exclude:
282
+ - 'test/unit/common/config_test.rb'
data/README.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Vagrant Google Compute Engine (GCE) Provider
2
2
 
3
+ <span class="badges">
4
+ [![Gem Version](https://badge.fury.io/rb/vagrant-google.png)][gem]
5
+ [![Dependency Status](https://gemnasium.com/mitchellh/vagrant-google.png)][gemnasium]
6
+ </span>
7
+
8
+ [gem]: https://rubygems.org/gems/vagrant-google
9
+ [gemnasium]: https://gemnasium.com/mitchellh/vagrant-google
10
+
3
11
  This is a [Vagrant](http://www.vagrantup.com) 1.2+ plugin that adds an
4
12
  [Google Compute Engine](http://cloud.google.com/compute/) (GCE) provider to
5
13
  Vagrant, allowing Vagrant to control and provision instances in GCE.
@@ -19,7 +19,7 @@ module VagrantPlugins
19
19
  module Google
20
20
  module Action
21
21
  # This runs the configured instance.
22
- class RunInstance
22
+ class RunInstance # rubocop:disable Metrics/ClassLength
23
23
  include Vagrant::Util::Retryable
24
24
 
25
25
  FOG_ERRORS = [
@@ -33,7 +33,7 @@ module VagrantPlugins
33
33
  @logger = Log4r::Logger.new("vagrant_google::action::run_instance")
34
34
  end
35
35
 
36
- def call(env)
36
+ def call(env) # rubocop:disable Metrics/MethodLength
37
37
  # Initialize metrics if they haven't been
38
38
  env[:metrics] ||= {}
39
39
 
@@ -199,7 +199,7 @@ module VagrantPlugins
199
199
  def get_disk_type(env, disk_type, zone)
200
200
  begin
201
201
  # TODO(temikus): Outsource parsing logic to fog-google
202
- disk_type=env[:google_compute].get_disk_type(disk_type, zone).body["selfLink"]
202
+ disk_type = env[:google_compute].get_disk_type(disk_type, zone).body["selfLink"]
203
203
  rescue Fog::Errors::NotFound
204
204
  raise Errors::DiskTypeError,
205
205
  :disktype => disk_type
@@ -29,7 +29,7 @@ module VagrantPlugins
29
29
  @logger = Log4r::Logger.new("vagrant_google::action::sync_folders")
30
30
  end
31
31
 
32
- def call(env)
32
+ def call(env) # rubocop:disable Metrics/MethodLength
33
33
  @app.call(env)
34
34
 
35
35
  ssh_info = env[:machine].ssh_info
@@ -15,7 +15,7 @@ require "vagrant/action/builder"
15
15
 
16
16
  module VagrantPlugins
17
17
  module Google
18
- module Action
18
+ module Action # rubocop:disable Metrics/ModuleLength
19
19
  # Include the built-in modules so we can use them as top-level things.
20
20
  include Vagrant::Action::Builtin
21
21
 
@@ -233,7 +233,7 @@ module VagrantPlugins
233
233
  @google_client_email = ENV['GOOGLE_CLIENT_EMAIL'] if @google_client_email == UNSET_VALUE
234
234
  @google_key_location = ENV['GOOGLE_KEY_LOCATION'] if @google_key_location == UNSET_VALUE
235
235
  @google_json_key_location = ENV['GOOGLE_JSON_KEY_LOCATION'] if @google_json_key_location == UNSET_VALUE
236
- @google_project_id = ENV['GOOGLE_PROJECT_ID'] if @google_project_id == UNSET_VALUE
236
+ @google_project_id = ENV['GOOGLE_PROJECT_ID'] if @google_project_id == UNSET_VALUE
237
237
 
238
238
  # Image must be nil, since we can't default that
239
239
  @image = "debian-7-wheezy-v20150127" if @image == UNSET_VALUE
@@ -13,6 +13,6 @@
13
13
  # limitations under the License.
14
14
  module VagrantPlugins
15
15
  module Google
16
- VERSION = "0.2.2"
16
+ VERSION = "0.2.3"
17
17
  end
18
18
  end
@@ -236,7 +236,7 @@ describe VagrantPlugins::Google::Config do
236
236
  instance.get_zone_config(zone)
237
237
  end
238
238
 
239
- its("image") { should == "child" }
239
+ its("image") { should == "child" }
240
240
  end
241
241
 
242
242
  describe "shortcut configuration" do
@@ -29,14 +29,13 @@ Gem::Specification.new do |s|
29
29
  s.rubyforge_project = "vagrant-google"
30
30
 
31
31
  s.add_runtime_dependency "fog-google", "~> 0.0.7"
32
- s.add_runtime_dependency "google-api-client"
33
- #s.add_runtime_dependency "pry"
34
- #s.add_runtime_dependency "pry-byebug"
35
- #s.add_runtime_dependency "rb-readline"
32
+ s.add_runtime_dependency "google-api-client", "< 0.9", ">= 0.6.2"
36
33
 
34
+ s.add_development_dependency "pry"
35
+ s.add_development_dependency "pry-byebug"
37
36
  s.add_development_dependency "rake"
38
- s.add_development_dependency "rspec", "~> 2.14.0"
39
- s.add_development_dependency "rubocop", "0.31.0"
37
+ s.add_development_dependency "rspec", "~> 2.14"
38
+ s.add_development_dependency "rubocop", "~> 0.35"
40
39
 
41
40
  # The following block of code determines the files that should be included
42
41
  # in the gem. It does this by reading all the files in the directory where
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-google
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Johnson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-10-28 00:00:00.000000000 Z
12
+ date: 2016-01-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog-google
@@ -29,11 +29,45 @@ dependencies:
29
29
  name: google-api-client
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
+ - - <
33
+ - !ruby/object:Gem::Version
34
+ version: '0.9'
32
35
  - - '>='
33
36
  - !ruby/object:Gem::Version
34
- version: '0'
37
+ version: 0.6.2
35
38
  type: :runtime
36
39
  prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - <
43
+ - !ruby/object:Gem::Version
44
+ version: '0.9'
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: 0.6.2
48
+ - !ruby/object:Gem::Dependency
49
+ name: pry
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: pry-byebug
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ type: :development
70
+ prerelease: false
37
71
  version_requirements: !ruby/object:Gem::Requirement
38
72
  requirements:
39
73
  - - '>='
@@ -59,36 +93,49 @@ dependencies:
59
93
  requirements:
60
94
  - - ~>
61
95
  - !ruby/object:Gem::Version
62
- version: 2.14.0
96
+ version: '2.14'
63
97
  type: :development
64
98
  prerelease: false
65
99
  version_requirements: !ruby/object:Gem::Requirement
66
100
  requirements:
67
101
  - - ~>
68
102
  - !ruby/object:Gem::Version
69
- version: 2.14.0
103
+ version: '2.14'
70
104
  - !ruby/object:Gem::Dependency
71
105
  name: rubocop
72
106
  requirement: !ruby/object:Gem::Requirement
73
107
  requirements:
74
- - - '='
108
+ - - ~>
75
109
  - !ruby/object:Gem::Version
76
- version: 0.31.0
110
+ version: '0.35'
77
111
  type: :development
78
112
  prerelease: false
79
113
  version_requirements: !ruby/object:Gem::Requirement
80
114
  requirements:
81
- - - '='
115
+ - - ~>
82
116
  - !ruby/object:Gem::Version
83
- version: 0.31.0
117
+ version: '0.35'
84
118
  description: Enables Vagrant to manage Google Compute Engine instances.
85
119
  email: vagrant-google@google.com
86
120
  executables: []
87
121
  extensions: []
88
122
  extra_rdoc_files: []
89
123
  files:
90
- - lib/vagrant-google/action/run_instance.rb
91
- - lib/vagrant-google/action/sync_folders.rb
124
+ - CHANGELOG.md
125
+ - Gemfile
126
+ - LICENSE
127
+ - README.md
128
+ - Rakefile
129
+ - example_boxes/README.md
130
+ - example_boxes/gce-test/Vagrantfile
131
+ - example_boxes/gce-test/metadata.json
132
+ - example_boxes/gce/Vagrantfile
133
+ - example_boxes/gce/metadata.json
134
+ - google-test.box
135
+ - google.box
136
+ - lib/vagrant-google.rb
137
+ - lib/vagrant-google/action.rb
138
+ - lib/vagrant-google/action/connect_google.rb
92
139
  - lib/vagrant-google/action/is_created.rb
93
140
  - lib/vagrant-google/action/is_terminated.rb
94
141
  - lib/vagrant-google/action/message_already_created.rb
@@ -96,71 +143,48 @@ files:
96
143
  - lib/vagrant-google/action/message_will_not_destroy.rb
97
144
  - lib/vagrant-google/action/read_ssh_info.rb
98
145
  - lib/vagrant-google/action/read_state.rb
99
- - lib/vagrant-google/action/timed_provision.rb
146
+ - lib/vagrant-google/action/run_instance.rb
100
147
  - lib/vagrant-google/action/start_instance.rb
148
+ - lib/vagrant-google/action/stop_instance.rb
149
+ - lib/vagrant-google/action/sync_folders.rb
101
150
  - lib/vagrant-google/action/terminate_instance.rb
102
- - lib/vagrant-google/action/connect_google.rb
151
+ - lib/vagrant-google/action/timed_provision.rb
103
152
  - lib/vagrant-google/action/warn_networks.rb
104
- - lib/vagrant-google/action/stop_instance.rb
105
153
  - lib/vagrant-google/action/warn_ssh_keys.rb
106
- - lib/vagrant-google/util/timer.rb
107
- - lib/vagrant-google/provider.rb
108
- - lib/vagrant-google/errors.rb
109
- - lib/vagrant-google/action.rb
110
154
  - lib/vagrant-google/config.rb
155
+ - lib/vagrant-google/errors.rb
111
156
  - lib/vagrant-google/plugin.rb
157
+ - lib/vagrant-google/provider.rb
158
+ - lib/vagrant-google/util/timer.rb
112
159
  - lib/vagrant-google/version.rb
113
- - lib/vagrant-google.rb
114
160
  - locales/en.yml
115
- - vagrantfile_examples/Vagrantfile.simple
116
- - vagrantfile_examples/Vagrantfile.provision_single
117
- - vagrantfile_examples/Vagrantfile.zone_config
118
- - vagrantfile_examples/Vagrantfile.multiple_machines
119
- - vagrant-google.gemspec
120
- - LICENSE
121
- - Vagrantfile.testing
122
- - Gemfile
123
- - example_boxes/gce/metadata.json
124
- - example_boxes/gce/Vagrantfile
125
- - example_boxes/gce-test/metadata.json
126
- - example_boxes/gce-test/Vagrantfile
127
- - example_boxes/README.md
128
- - CHANGELOG.md
129
- - google-test.box
130
- - vagrant-spec.config.rb
131
- - Vagrantfile.current
132
- - Vagrantfile
133
- - google.box
134
- - Rakefile
161
+ - tasks/acceptance.rake
135
162
  - tasks/bundler.rake
136
163
  - tasks/lint.rake
137
164
  - tasks/test.rake
138
- - tasks/acceptance.rake
139
165
  - test/acceptance/base.rb
140
- - test/acceptance/shared/context_google.rb
141
166
  - test/acceptance/provider/halt_spec.rb
142
167
  - test/acceptance/provider/multi_instance_spec.rb
143
168
  - test/acceptance/provider/preemptible_spec.rb
144
169
  - test/acceptance/provider/reload_spec.rb
145
170
  - test/acceptance/provider/scopes_spec.rb
171
+ - test/acceptance/shared/context_google.rb
172
+ - test/acceptance/skeletons/generic/Vagrantfile
146
173
  - test/acceptance/skeletons/multi_instance/Vagrantfile
147
174
  - test/acceptance/skeletons/preemptible/Vagrantfile
148
175
  - test/acceptance/skeletons/scopes/Vagrantfile
149
- - test/acceptance/skeletons/generic/Vagrantfile
150
- - test/unit/common/config_test.rb
151
176
  - test/unit/base.rb
152
- - Vagrantfile.working
153
- - README.md
154
- - lib/vagrant-google/action/._sync_folders.rb
155
- - lib/vagrant-google/._action.rb
156
- - .rubocop_todo.yml
157
- - ._README.md
158
- - ._CHANGELOG.md
159
- - .ruby-version
160
- - tasks/._acceptance.rake
161
- - test/acceptance/skeletons/._.DS_Store
177
+ - test/unit/common/config_test.rb
178
+ - vagrant-spec.config.rb
179
+ - vagrantfile_examples/Vagrantfile.multiple_machines
180
+ - vagrantfile_examples/Vagrantfile.provision_single
181
+ - vagrantfile_examples/Vagrantfile.simple
182
+ - vagrantfile_examples/Vagrantfile.zone_config
183
+ - vagrant-google.gemspec
162
184
  - .gitignore
163
185
  - .rubocop.yml
186
+ - .rubocop_todo.yml
187
+ - .ruby-version
164
188
  homepage: http://www.vagrantup.com
165
189
  licenses: []
166
190
  metadata: {}
data/._CHANGELOG.md DELETED
Binary file
data/._README.md DELETED
Binary file
data/Vagrantfile DELETED
@@ -1,38 +0,0 @@
1
- # -*- mde: ruby -*-
2
- # vi: set ft=ruby :
3
- # Copyright 2013 Google Inc. All Rights Reserved.
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
- Vagrant.configure("2") do |config|
18
- config.vm.box = "gce"
19
-
20
- config.vm.provider :google do |google, override|
21
- google.google_project_id = "dev-utility-90115"
22
- google.google_client_email = "768099535741-jcfc4jlatsvelvosl2cgmqcsqoep3d1k@developer.gserviceaccount.com"
23
- #google.google_key_location = "./vagrant-google-7bb59a77ba3e.p12"
24
- google.google_json_key_location = "/home/temikus/code/vagrant-google/vagrant-google-49d3afc6bc4e.json"
25
-
26
- override.ssh.username = "temikus"
27
- override.ssh.private_key_path = "~/.ssh/id_rsa"
28
-
29
- google.zone = "europe-west1-d"
30
-
31
- google.zone_config "europe-west1-d" do |zone1d|
32
- zone1d.name = "testing-vagrant"
33
- zone1d.image = "debian-7-wheezy-v20150127"
34
- zone1d.zone = "europe-west1-d"
35
- zone1d.disk_type = "pd-ssd"
36
- end
37
- end
38
- end
data/Vagrantfile.current DELETED
@@ -1,24 +0,0 @@
1
-
2
- Vagrant.configure("2") do |config|
3
- config.vm.box = "gce"
4
-
5
- config.vm.synced_folder "test/", "/srv/test"
6
-
7
- config.vm.provider :google do |google, override|
8
- google.google_project_id = "dev-utility-90115"
9
- google.google_client_email = "768099535741-jcfc4jlatsvelvosl2cgmqcsqoep3d1k@developer.gserviceaccount.com"
10
- # google.google_json_key_location = "/home/temikus/code/vagrant-google/vagrant-google-49d3afc6bc4e.json"
11
- google.google_key_location = "./vagrant-google-7bb59a77ba3e.p12"
12
-
13
- override.ssh.username = "temikus"
14
- override.ssh.private_key_path = "~/.ssh/id_rsa"
15
-
16
- google.zone = "europe-west1-d"
17
-
18
- google.zone_config "europe-west1-d" do |zone1d|
19
- zone1d.image = "debian-7-wheezy-v20150127"
20
- zone1d.zone = "europe-west1-d"
21
- zone1d.disk_type = "pd-ssd"
22
- end
23
- end
24
- end
data/Vagrantfile.testing DELETED
@@ -1,39 +0,0 @@
1
- # -*- mde: ruby -*-
2
- # vi: set ft=ruby :
3
- # Copyright 2013 Google Inc. All Rights Reserved.
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
- Vagrant.configure("2") do |config|
18
- config.vm.box = "gce"
19
-
20
- config.vm.provider :google do |google, override|
21
- google.google_project_id = "dev-utility-90115"
22
- google.google_client_email = "768099535741-jcfc4jlatsvelvosl2cgmqcsqoep3d1k@developer.gserviceaccount.com"
23
- #google.google_key_location = "./vagrant-google-7bb59a77ba3e.p12"
24
- #google.google_json_key_location = "./vagrant-google-49d3afc6bc4e.json"
25
- google.google_json_key_location = "./vagrant-google-7bb59a77ba3e.p12"
26
-
27
- override.ssh.username = "temikus"
28
- override.ssh.private_key_path = "~/.ssh/id_rsa"
29
-
30
- google.zone = "europe-west1-d"
31
-
32
- google.zone_config "europe-west1-d" do |zone1d|
33
- zone1d.name = "testing-vagrant"
34
- zone1d.service_accounts = ['bigquery', 'https://www.googleapis.com/auth/compute']
35
- zone1d.image = "debian-7-wheezy-v20150127"
36
- zone1d.zone = "europe-west1-d"
37
- end
38
- end
39
- end
data/Vagrantfile.working DELETED
@@ -1,38 +0,0 @@
1
- # -*- mde: ruby -*-
2
- # vi: set ft=ruby :
3
- # Copyright 2013 Google Inc. All Rights Reserved.
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
- Vagrant.configure("2") do |config|
18
- config.vm.box = "gce"
19
-
20
- config.vm.provider :google do |google, override|
21
- google.google_project_id = "dev-utility-90115"
22
- google.google_client_email = "768099535741-jcfc4jlatsvelvosl2cgmqcsqoep3d1k@developer.gserviceaccount.com"
23
- #google.google_key_location = "./vagrant-google-7bb59a77ba3e.p12"
24
- google.google_json_key_location = "./vagrant-google-e8c626b5f487.json"
25
-
26
- override.ssh.username = "temikus"
27
- override.ssh.private_key_path = "~/.ssh/id_rsa"
28
-
29
- google.zone = "europe-west1-d"
30
-
31
- google.zone_config "europe-west1-d" do |zone1d|
32
- zone1d.name = "testing-vagrant"
33
- zone1d.image = "debian-7-wheezy-v20150127"
34
- zone1d.zone = "europe-west1-d"
35
- zone1d.disk_type = "pd-ssd"
36
- end
37
- end
38
- end
Binary file
Binary file
Binary file