tugboat 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/.gitignore +1 -0
  2. data/CHANGELOG.md +27 -2
  3. data/README.md +61 -0
  4. data/lib/tugboat/cli.rb +91 -4
  5. data/lib/tugboat/middleware.rb +54 -0
  6. data/lib/tugboat/middleware/check_droplet_active.rb +17 -0
  7. data/lib/tugboat/middleware/check_droplet_inactive.rb +17 -0
  8. data/lib/tugboat/middleware/find_droplet.rb +4 -0
  9. data/lib/tugboat/middleware/password_reset.rb +23 -0
  10. data/lib/tugboat/middleware/resize_droplet.rb +24 -0
  11. data/lib/tugboat/middleware/ssh_droplet.rb +4 -0
  12. data/lib/tugboat/middleware/start_droplet.rb +21 -0
  13. data/lib/tugboat/middleware/wait_for_state.rb +35 -0
  14. data/lib/tugboat/version.rb +1 -1
  15. data/spec/cli/authorize_cli_spec.rb +0 -4
  16. data/spec/cli/create_cli_spec.rb +0 -4
  17. data/spec/cli/destroy_cli_spec.rb +0 -4
  18. data/spec/cli/droplets_cli_spec.rb +1 -5
  19. data/spec/cli/halt_cli_spec.rb +16 -4
  20. data/spec/cli/help_cli_spec.rb +17 -0
  21. data/spec/cli/images_cli_spec.rb +0 -4
  22. data/spec/cli/info_cli_spec.rb +0 -4
  23. data/spec/cli/keys_cli_spec.rb +0 -4
  24. data/spec/cli/password_reset_cli_spec.rb +83 -0
  25. data/spec/cli/regions_cli_spec.rb +0 -4
  26. data/spec/cli/resize_cli_spec.rb +82 -0
  27. data/spec/cli/restart_cli_spec.rb +0 -4
  28. data/spec/cli/sizes_cli_spec.rb +0 -4
  29. data/spec/cli/snapshot_cli_spec.rb +18 -7
  30. data/spec/cli/ssh_cli_spec.rb +19 -4
  31. data/spec/cli/start_cli_spec.rb +76 -0
  32. data/spec/cli/version_cli_spec.rb +0 -4
  33. data/spec/cli/wait_cli_spec.rb +66 -0
  34. data/spec/config_spec.rb +2 -0
  35. data/spec/fixtures/show_droplet_inactive.json +13 -0
  36. data/spec/fixtures/show_droplets.json +1 -1
  37. data/spec/fixtures/show_droplets_inactive.json +35 -0
  38. data/spec/middleware/check_configuration_spec.rb +0 -3
  39. data/spec/middleware/check_credentials_spec.rb +0 -3
  40. data/spec/middleware/check_droplet_active_spec.rb +15 -0
  41. data/spec/middleware/check_droplet_inactive_spec.rb +15 -0
  42. data/spec/middleware/find_droplet_spec.rb +0 -3
  43. data/spec/middleware/inject_configuration_spec.rb +0 -3
  44. data/spec/middleware/ssh_droplet_spec.rb +19 -3
  45. data/spec/shared/environment.rb +3 -0
  46. data/spec/spec_helper.rb +5 -0
  47. data/tugboat.gemspec +2 -0
  48. metadata +42 -2
@@ -26,4 +26,6 @@ Gem::Specification.new do |gem|
26
26
  gem.add_development_dependency "rspec-expectations", "~> 2.13.0"
27
27
  gem.add_development_dependency "rspec-mocks", "~> 2.13.0"
28
28
  gem.add_development_dependency "webmock", "~> 1.11.0"
29
+ gem.add_development_dependency "coveralls", "~> 0.6.7"
30
+
29
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tugboat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-04 00:00:00.000000000 Z
12
+ date: 2013-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -139,6 +139,22 @@ dependencies:
139
139
  - - ~>
140
140
  - !ruby/object:Gem::Version
141
141
  version: 1.11.0
142
+ - !ruby/object:Gem::Dependency
143
+ name: coveralls
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ~>
148
+ - !ruby/object:Gem::Version
149
+ version: 0.6.7
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: 0.6.7
142
158
  description: A command line tool for interacting with your DigitalOcean droplets.
143
159
  email:
144
160
  - jackpearkes@gmail.com
@@ -164,6 +180,8 @@ files:
164
180
  - lib/tugboat/middleware/base.rb
165
181
  - lib/tugboat/middleware/check_configuration.rb
166
182
  - lib/tugboat/middleware/check_credentials.rb
183
+ - lib/tugboat/middleware/check_droplet_active.rb
184
+ - lib/tugboat/middleware/check_droplet_inactive.rb
167
185
  - lib/tugboat/middleware/confirm_action.rb
168
186
  - lib/tugboat/middleware/create_droplet.rb
169
187
  - lib/tugboat/middleware/destroy_droplet.rb
@@ -177,28 +195,39 @@ files:
177
195
  - lib/tugboat/middleware/list_regions.rb
178
196
  - lib/tugboat/middleware/list_sizes.rb
179
197
  - lib/tugboat/middleware/list_ssh_keys.rb
198
+ - lib/tugboat/middleware/password_reset.rb
199
+ - lib/tugboat/middleware/resize_droplet.rb
180
200
  - lib/tugboat/middleware/restart_droplet.rb
181
201
  - lib/tugboat/middleware/snapshot_droplet.rb
182
202
  - lib/tugboat/middleware/ssh_droplet.rb
203
+ - lib/tugboat/middleware/start_droplet.rb
204
+ - lib/tugboat/middleware/wait_for_state.rb
183
205
  - lib/tugboat/version.rb
184
206
  - spec/cli/authorize_cli_spec.rb
185
207
  - spec/cli/create_cli_spec.rb
186
208
  - spec/cli/destroy_cli_spec.rb
187
209
  - spec/cli/droplets_cli_spec.rb
188
210
  - spec/cli/halt_cli_spec.rb
211
+ - spec/cli/help_cli_spec.rb
189
212
  - spec/cli/images_cli_spec.rb
190
213
  - spec/cli/info_cli_spec.rb
191
214
  - spec/cli/keys_cli_spec.rb
215
+ - spec/cli/password_reset_cli_spec.rb
192
216
  - spec/cli/regions_cli_spec.rb
217
+ - spec/cli/resize_cli_spec.rb
193
218
  - spec/cli/restart_cli_spec.rb
194
219
  - spec/cli/sizes_cli_spec.rb
195
220
  - spec/cli/snapshot_cli_spec.rb
196
221
  - spec/cli/ssh_cli_spec.rb
222
+ - spec/cli/start_cli_spec.rb
197
223
  - spec/cli/version_cli_spec.rb
224
+ - spec/cli/wait_cli_spec.rb
198
225
  - spec/config_spec.rb
199
226
  - spec/fixtures/create_droplet.json
200
227
  - spec/fixtures/show_droplet.json
228
+ - spec/fixtures/show_droplet_inactive.json
201
229
  - spec/fixtures/show_droplets.json
230
+ - spec/fixtures/show_droplets_inactive.json
202
231
  - spec/fixtures/show_images.json
203
232
  - spec/fixtures/show_images_global.json
204
233
  - spec/fixtures/show_keys.json
@@ -207,6 +236,8 @@ files:
207
236
  - spec/middleware/base_spec.rb
208
237
  - spec/middleware/check_configuration_spec.rb
209
238
  - spec/middleware/check_credentials_spec.rb
239
+ - spec/middleware/check_droplet_active_spec.rb
240
+ - spec/middleware/check_droplet_inactive_spec.rb
210
241
  - spec/middleware/find_droplet_spec.rb
211
242
  - spec/middleware/inject_configuration_spec.rb
212
243
  - spec/middleware/ssh_droplet_spec.rb
@@ -244,19 +275,26 @@ test_files:
244
275
  - spec/cli/destroy_cli_spec.rb
245
276
  - spec/cli/droplets_cli_spec.rb
246
277
  - spec/cli/halt_cli_spec.rb
278
+ - spec/cli/help_cli_spec.rb
247
279
  - spec/cli/images_cli_spec.rb
248
280
  - spec/cli/info_cli_spec.rb
249
281
  - spec/cli/keys_cli_spec.rb
282
+ - spec/cli/password_reset_cli_spec.rb
250
283
  - spec/cli/regions_cli_spec.rb
284
+ - spec/cli/resize_cli_spec.rb
251
285
  - spec/cli/restart_cli_spec.rb
252
286
  - spec/cli/sizes_cli_spec.rb
253
287
  - spec/cli/snapshot_cli_spec.rb
254
288
  - spec/cli/ssh_cli_spec.rb
289
+ - spec/cli/start_cli_spec.rb
255
290
  - spec/cli/version_cli_spec.rb
291
+ - spec/cli/wait_cli_spec.rb
256
292
  - spec/config_spec.rb
257
293
  - spec/fixtures/create_droplet.json
258
294
  - spec/fixtures/show_droplet.json
295
+ - spec/fixtures/show_droplet_inactive.json
259
296
  - spec/fixtures/show_droplets.json
297
+ - spec/fixtures/show_droplets_inactive.json
260
298
  - spec/fixtures/show_images.json
261
299
  - spec/fixtures/show_images_global.json
262
300
  - spec/fixtures/show_keys.json
@@ -265,6 +303,8 @@ test_files:
265
303
  - spec/middleware/base_spec.rb
266
304
  - spec/middleware/check_configuration_spec.rb
267
305
  - spec/middleware/check_credentials_spec.rb
306
+ - spec/middleware/check_droplet_active_spec.rb
307
+ - spec/middleware/check_droplet_inactive_spec.rb
268
308
  - spec/middleware/find_droplet_spec.rb
269
309
  - spec/middleware/inject_configuration_spec.rb
270
310
  - spec/middleware/ssh_droplet_spec.rb