squall 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +1 -1
  3. data/README.md +64 -41
  4. data/Rakefile +3 -9
  5. data/lib/squall/data_store_zone.rb +20 -26
  6. data/lib/squall/disk.rb +174 -0
  7. data/lib/squall/firewall_rule.rb +34 -41
  8. data/lib/squall/hypervisor.rb +40 -38
  9. data/lib/squall/hypervisor_zone.rb +51 -63
  10. data/lib/squall/ip_address.rb +32 -37
  11. data/lib/squall/ip_address_join.rb +13 -22
  12. data/lib/squall/network.rb +36 -33
  13. data/lib/squall/network_zone.rb +27 -29
  14. data/lib/squall/payment.rb +22 -32
  15. data/lib/squall/role.rb +30 -37
  16. data/lib/squall/statistic.rb +3 -1
  17. data/lib/squall/support/base.rb +35 -31
  18. data/lib/squall/support/config.rb +25 -1
  19. data/lib/squall/support/version.rb +1 -1
  20. data/lib/squall/template.rb +7 -5
  21. data/lib/squall/transaction.rb +6 -4
  22. data/lib/squall/user.rb +84 -83
  23. data/lib/squall/user_group.rb +17 -30
  24. data/lib/squall/virtual_machine.rb +154 -178
  25. data/lib/squall/whitelist.rb +29 -40
  26. data/lib/squall.rb +27 -25
  27. data/spec/spec_helper.rb +6 -11
  28. data/spec/squall/data_store_zone_spec.rb +2 -20
  29. data/spec/squall/disk_spec.rb +189 -0
  30. data/spec/squall/firewall_rule_spec.rb +2 -32
  31. data/spec/squall/hypervisor_spec.rb +3 -47
  32. data/spec/squall/hypervisor_zone_spec.rb +3 -28
  33. data/spec/squall/ip_address_join_spec.rb +1 -15
  34. data/spec/squall/ip_address_spec.rb +10 -35
  35. data/spec/squall/network_spec.rb +20 -31
  36. data/spec/squall/network_zone_spec.rb +2 -36
  37. data/spec/squall/payment_spec.rb +2 -21
  38. data/spec/squall/role_spec.rb +4 -16
  39. data/spec/squall/support/base_spec.rb +10 -16
  40. data/spec/squall/template_spec.rb +0 -4
  41. data/spec/squall/transaction_spec.rb +1 -3
  42. data/spec/squall/user_group_spec.rb +1 -17
  43. data/spec/squall/user_spec.rb +4 -92
  44. data/spec/squall/virtual_machine_spec.rb +8 -242
  45. data/spec/squall/whitelist_spec.rb +2 -40
  46. data/spec/squall_spec.rb +2 -2
  47. data/spec/vcr_cassettes/disk/add_schedule.yml +40 -0
  48. data/spec/vcr_cassettes/disk/auto_backup_off.yml +40 -0
  49. data/spec/vcr_cassettes/disk/auto_backup_on.yml +40 -0
  50. data/spec/vcr_cassettes/disk/backups.yml +40 -0
  51. data/spec/vcr_cassettes/disk/build.yml +40 -0
  52. data/spec/vcr_cassettes/disk/create.yml +40 -0
  53. data/spec/vcr_cassettes/disk/delete.yml +38 -0
  54. data/spec/vcr_cassettes/disk/edit.yml +40 -0
  55. data/spec/vcr_cassettes/disk/iops_usage.yml +40 -0
  56. data/spec/vcr_cassettes/disk/list.yml +40 -0
  57. data/spec/vcr_cassettes/disk/migrate.yml +38 -0
  58. data/spec/vcr_cassettes/disk/schedules.yml +40 -0
  59. data/spec/vcr_cassettes/disk/unlock.yml +40 -0
  60. data/spec/vcr_cassettes/disk/vm_disk_list.yml +40 -0
  61. data/spec/vcr_cassettes/network/rebuild.yml +41 -0
  62. metadata +217 -66
  63. data/.gitignore +0 -13
  64. data/.rspec +0 -2
  65. data/.rvmrc +0 -41
  66. data/.travis.yml +0 -17
  67. data/lib/squall/support/params.rb +0 -50
  68. data/lib/squall/support/yaml.rb +0 -5
  69. data/spec/squall/support/params_spec.rb +0 -195
  70. data/squall.gemspec +0 -32
metadata CHANGED
@@ -1,144 +1,141 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: squall
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
5
- prerelease:
4
+ version: 1.3.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Justin Mazzi
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-08-27 00:00:00.000000000 Z
11
+ date: 2014-03-13 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: faraday
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: 0.8.1
19
+ version: 0.8.9
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: 0.8.1
26
+ version: 0.8.9
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: faraday_middleware
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
- version: 0.8.7
33
+ version: 0.9.0
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
- version: 0.8.7
40
+ version: 0.9.0
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: json
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: 1.7.3
47
+ version: '1.7'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
- version: 1.7.3
54
+ version: '1.7'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rspec
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
61
  version: 2.10.0
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
68
  version: 2.10.0
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: fakeweb
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ~>
73
+ - - "~>"
84
74
  - !ruby/object:Gem::Version
85
75
  version: '1.3'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ~>
80
+ - - "~>"
92
81
  - !ruby/object:Gem::Version
93
82
  version: '1.3'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: vcr
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ~>
87
+ - - "~>"
100
88
  - !ruby/object:Gem::Version
101
89
  version: '1.8'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ~>
94
+ - - "~>"
108
95
  - !ruby/object:Gem::Version
109
96
  version: '1.8'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: awesome_print
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ~>
101
+ - - "~>"
116
102
  - !ruby/object:Gem::Version
117
103
  version: 1.0.2
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ~>
108
+ - - "~>"
124
109
  - !ruby/object:Gem::Version
125
110
  version: 1.0.2
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: rake
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
- - - ~>
115
+ - - "~>"
132
116
  - !ruby/object:Gem::Version
133
117
  version: 0.9.2.2
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - ~>
122
+ - - "~>"
140
123
  - !ruby/object:Gem::Version
141
124
  version: 0.9.2.2
125
+ - !ruby/object:Gem::Dependency
126
+ name: rake-tomdoc
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.0.2
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.0.2
142
139
  description: A Ruby library for working with the OnApp REST API
143
140
  email:
144
141
  - jmazzi@site5.com
@@ -146,16 +143,12 @@ executables: []
146
143
  extensions: []
147
144
  extra_rdoc_files: []
148
145
  files:
149
- - .gitignore
150
- - .rspec
151
- - .rvmrc
152
- - .travis.yml
153
146
  - Gemfile
154
147
  - LICENSE
155
- - README.md
156
148
  - Rakefile
157
- - lib/squall.rb
149
+ - README.md
158
150
  - lib/squall/data_store_zone.rb
151
+ - lib/squall/disk.rb
159
152
  - lib/squall/firewall_rule.rb
160
153
  - lib/squall/hypervisor.rb
161
154
  - lib/squall/hypervisor_zone.rb
@@ -169,17 +162,17 @@ files:
169
162
  - lib/squall/support/base.rb
170
163
  - lib/squall/support/config.rb
171
164
  - lib/squall/support/exception.rb
172
- - lib/squall/support/params.rb
173
165
  - lib/squall/support/version.rb
174
- - lib/squall/support/yaml.rb
175
166
  - lib/squall/template.rb
176
167
  - lib/squall/transaction.rb
177
168
  - lib/squall/user.rb
178
169
  - lib/squall/user_group.rb
179
170
  - lib/squall/virtual_machine.rb
180
171
  - lib/squall/whitelist.rb
172
+ - lib/squall.rb
181
173
  - spec/spec_helper.rb
182
174
  - spec/squall/data_store_zone_spec.rb
175
+ - spec/squall/disk_spec.rb
183
176
  - spec/squall/firewall_rule_spec.rb
184
177
  - spec/squall/hypervisor_spec.rb
185
178
  - spec/squall/hypervisor_zone_spec.rb
@@ -192,7 +185,6 @@ files:
192
185
  - spec/squall/statistic_spec.rb
193
186
  - spec/squall/support/base_spec.rb
194
187
  - spec/squall/support/config_spec.rb
195
- - spec/squall/support/params_spec.rb
196
188
  - spec/squall/template_spec.rb
197
189
  - spec/squall/transaction_spec.rb
198
190
  - spec/squall/user_group_spec.rb
@@ -205,6 +197,20 @@ files:
205
197
  - spec/vcr_cassettes/data_store_zone/edit.yml
206
198
  - spec/vcr_cassettes/data_store_zone/list.yml
207
199
  - spec/vcr_cassettes/data_store_zone/show.yml
200
+ - spec/vcr_cassettes/disk/add_schedule.yml
201
+ - spec/vcr_cassettes/disk/auto_backup_off.yml
202
+ - spec/vcr_cassettes/disk/auto_backup_on.yml
203
+ - spec/vcr_cassettes/disk/backups.yml
204
+ - spec/vcr_cassettes/disk/build.yml
205
+ - spec/vcr_cassettes/disk/create.yml
206
+ - spec/vcr_cassettes/disk/delete.yml
207
+ - spec/vcr_cassettes/disk/edit.yml
208
+ - spec/vcr_cassettes/disk/iops_usage.yml
209
+ - spec/vcr_cassettes/disk/list.yml
210
+ - spec/vcr_cassettes/disk/migrate.yml
211
+ - spec/vcr_cassettes/disk/schedules.yml
212
+ - spec/vcr_cassettes/disk/unlock.yml
213
+ - spec/vcr_cassettes/disk/vm_disk_list.yml
208
214
  - spec/vcr_cassettes/firewall_rule/create.yml
209
215
  - spec/vcr_cassettes/firewall_rule/delete.yml
210
216
  - spec/vcr_cassettes/firewall_rule/edit.yml
@@ -244,6 +250,7 @@ files:
244
250
  - spec/vcr_cassettes/network/delete.yml
245
251
  - spec/vcr_cassettes/network/edit.yml
246
252
  - spec/vcr_cassettes/network/list.yml
253
+ - spec/vcr_cassettes/network/rebuild.yml
247
254
  - spec/vcr_cassettes/network_zones/attach.yml
248
255
  - spec/vcr_cassettes/network_zones/create.yml
249
256
  - spec/vcr_cassettes/network_zones/delete.yml
@@ -313,35 +320,179 @@ files:
313
320
  - spec/vcr_cassettes/whitelist/edit.yml
314
321
  - spec/vcr_cassettes/whitelist/list.yml
315
322
  - spec/vcr_cassettes/whitelist/show.yml
316
- - squall.gemspec
317
323
  homepage: ''
318
- licenses: []
324
+ licenses:
325
+ - MIT
326
+ metadata: {}
319
327
  post_install_message:
320
328
  rdoc_options: []
321
329
  require_paths:
322
330
  - lib
323
331
  required_ruby_version: !ruby/object:Gem::Requirement
324
- none: false
325
332
  requirements:
326
- - - ! '>='
333
+ - - ">="
327
334
  - !ruby/object:Gem::Version
328
- version: '0'
329
- segments:
330
- - 0
331
- hash: -4354418845282087791
335
+ version: 1.9.2
332
336
  required_rubygems_version: !ruby/object:Gem::Requirement
333
- none: false
334
337
  requirements:
335
- - - ! '>='
338
+ - - ">="
336
339
  - !ruby/object:Gem::Version
337
340
  version: '0'
338
- segments:
339
- - 0
340
- hash: -4354418845282087791
341
341
  requirements: []
342
342
  rubyforge_project: squall
343
- rubygems_version: 1.8.23
343
+ rubygems_version: 2.0.14
344
344
  signing_key:
345
- specification_version: 3
345
+ specification_version: 4
346
346
  summary: A Ruby library for working with the OnApp REST API
347
- test_files: []
347
+ test_files:
348
+ - spec/spec_helper.rb
349
+ - spec/squall/data_store_zone_spec.rb
350
+ - spec/squall/disk_spec.rb
351
+ - spec/squall/firewall_rule_spec.rb
352
+ - spec/squall/hypervisor_spec.rb
353
+ - spec/squall/hypervisor_zone_spec.rb
354
+ - spec/squall/ip_address_join_spec.rb
355
+ - spec/squall/ip_address_spec.rb
356
+ - spec/squall/network_spec.rb
357
+ - spec/squall/network_zone_spec.rb
358
+ - spec/squall/payment_spec.rb
359
+ - spec/squall/role_spec.rb
360
+ - spec/squall/statistic_spec.rb
361
+ - spec/squall/support/base_spec.rb
362
+ - spec/squall/support/config_spec.rb
363
+ - spec/squall/template_spec.rb
364
+ - spec/squall/transaction_spec.rb
365
+ - spec/squall/user_group_spec.rb
366
+ - spec/squall/user_spec.rb
367
+ - spec/squall/virtual_machine_spec.rb
368
+ - spec/squall/whitelist_spec.rb
369
+ - spec/squall_spec.rb
370
+ - spec/vcr_cassettes/data_store_zone/create.yml
371
+ - spec/vcr_cassettes/data_store_zone/delete.yml
372
+ - spec/vcr_cassettes/data_store_zone/edit.yml
373
+ - spec/vcr_cassettes/data_store_zone/list.yml
374
+ - spec/vcr_cassettes/data_store_zone/show.yml
375
+ - spec/vcr_cassettes/disk/add_schedule.yml
376
+ - spec/vcr_cassettes/disk/auto_backup_off.yml
377
+ - spec/vcr_cassettes/disk/auto_backup_on.yml
378
+ - spec/vcr_cassettes/disk/backups.yml
379
+ - spec/vcr_cassettes/disk/build.yml
380
+ - spec/vcr_cassettes/disk/create.yml
381
+ - spec/vcr_cassettes/disk/delete.yml
382
+ - spec/vcr_cassettes/disk/edit.yml
383
+ - spec/vcr_cassettes/disk/iops_usage.yml
384
+ - spec/vcr_cassettes/disk/list.yml
385
+ - spec/vcr_cassettes/disk/migrate.yml
386
+ - spec/vcr_cassettes/disk/schedules.yml
387
+ - spec/vcr_cassettes/disk/unlock.yml
388
+ - spec/vcr_cassettes/disk/vm_disk_list.yml
389
+ - spec/vcr_cassettes/firewall_rule/create.yml
390
+ - spec/vcr_cassettes/firewall_rule/delete.yml
391
+ - spec/vcr_cassettes/firewall_rule/edit.yml
392
+ - spec/vcr_cassettes/firewall_rule/list.yml
393
+ - spec/vcr_cassettes/hypervisor/add_data_store_join.yml
394
+ - spec/vcr_cassettes/hypervisor/add_network_join.yml
395
+ - spec/vcr_cassettes/hypervisor/create.yml
396
+ - spec/vcr_cassettes/hypervisor/data_store_joins.yml
397
+ - spec/vcr_cassettes/hypervisor/delete.yml
398
+ - spec/vcr_cassettes/hypervisor/edit.yml
399
+ - spec/vcr_cassettes/hypervisor/list.yml
400
+ - spec/vcr_cassettes/hypervisor/network_joins.yml
401
+ - spec/vcr_cassettes/hypervisor/reboot.yml
402
+ - spec/vcr_cassettes/hypervisor/remove_data_store_join.yml
403
+ - spec/vcr_cassettes/hypervisor/remove_network_join.yml
404
+ - spec/vcr_cassettes/hypervisor/show.yml
405
+ - spec/vcr_cassettes/hypervisor_zones/add_data_store_join.yml
406
+ - spec/vcr_cassettes/hypervisor_zones/add_network_join.yml
407
+ - spec/vcr_cassettes/hypervisor_zones/create.yml
408
+ - spec/vcr_cassettes/hypervisor_zones/data_store_joins.yml
409
+ - spec/vcr_cassettes/hypervisor_zones/delete.yml
410
+ - spec/vcr_cassettes/hypervisor_zones/edit.yml
411
+ - spec/vcr_cassettes/hypervisor_zones/hypervisors.yml
412
+ - spec/vcr_cassettes/hypervisor_zones/list.yml
413
+ - spec/vcr_cassettes/hypervisor_zones/network_joins.yml
414
+ - spec/vcr_cassettes/hypervisor_zones/remove_data_store_join.yml
415
+ - spec/vcr_cassettes/hypervisor_zones/remove_network_join.yml
416
+ - spec/vcr_cassettes/hypervisor_zones/show.yml
417
+ - spec/vcr_cassettes/ipaddress/create.yml
418
+ - spec/vcr_cassettes/ipaddress/delete.yml
419
+ - spec/vcr_cassettes/ipaddress/edit.yml
420
+ - spec/vcr_cassettes/ipaddress/list.yml
421
+ - spec/vcr_cassettes/ipaddress_join/assign.yml
422
+ - spec/vcr_cassettes/ipaddress_join/delete.yml
423
+ - spec/vcr_cassettes/ipaddress_join/list.yml
424
+ - spec/vcr_cassettes/network/create.yml
425
+ - spec/vcr_cassettes/network/delete.yml
426
+ - spec/vcr_cassettes/network/edit.yml
427
+ - spec/vcr_cassettes/network/list.yml
428
+ - spec/vcr_cassettes/network/rebuild.yml
429
+ - spec/vcr_cassettes/network_zones/attach.yml
430
+ - spec/vcr_cassettes/network_zones/create.yml
431
+ - spec/vcr_cassettes/network_zones/delete.yml
432
+ - spec/vcr_cassettes/network_zones/detach.yml
433
+ - spec/vcr_cassettes/network_zones/edit.yml
434
+ - spec/vcr_cassettes/network_zones/list.yml
435
+ - spec/vcr_cassettes/network_zones/show.yml
436
+ - spec/vcr_cassettes/payment/create.yml
437
+ - spec/vcr_cassettes/payment/delete.yml
438
+ - spec/vcr_cassettes/payment/edit.yml
439
+ - spec/vcr_cassettes/payment/list.yml
440
+ - spec/vcr_cassettes/role/create.yml
441
+ - spec/vcr_cassettes/role/delete.yml
442
+ - spec/vcr_cassettes/role/edit.yml
443
+ - spec/vcr_cassettes/role/list.yml
444
+ - spec/vcr_cassettes/role/permissions.yml
445
+ - spec/vcr_cassettes/role/show.yml
446
+ - spec/vcr_cassettes/statistic/usage_statistics.yml
447
+ - spec/vcr_cassettes/template/list.yml
448
+ - spec/vcr_cassettes/template/make_public.yml
449
+ - spec/vcr_cassettes/transaction/list.yml
450
+ - spec/vcr_cassettes/transaction/show.yml
451
+ - spec/vcr_cassettes/user/activate.yml
452
+ - spec/vcr_cassettes/user/create.yml
453
+ - spec/vcr_cassettes/user/data_store_zones.yml
454
+ - spec/vcr_cassettes/user/delete.yml
455
+ - spec/vcr_cassettes/user/edit.yml
456
+ - spec/vcr_cassettes/user/edit_role.yml
457
+ - spec/vcr_cassettes/user/generate_api_key.yml
458
+ - spec/vcr_cassettes/user/hypervisors.yml
459
+ - spec/vcr_cassettes/user/limits.yml
460
+ - spec/vcr_cassettes/user/list.yml
461
+ - spec/vcr_cassettes/user/monthly_bills.yml
462
+ - spec/vcr_cassettes/user/network_zones.yml
463
+ - spec/vcr_cassettes/user/show.yml
464
+ - spec/vcr_cassettes/user/stats.yml
465
+ - spec/vcr_cassettes/user/suspend.yml
466
+ - spec/vcr_cassettes/user/virtual_machines.yml
467
+ - spec/vcr_cassettes/user_group/create.yml
468
+ - spec/vcr_cassettes/user_group/delete.yml
469
+ - spec/vcr_cassettes/user_group/edit.yml
470
+ - spec/vcr_cassettes/user_group/list.yml
471
+ - spec/vcr_cassettes/virtual_machine/build.yml
472
+ - spec/vcr_cassettes/virtual_machine/change_owner.yml
473
+ - spec/vcr_cassettes/virtual_machine/change_password.yml
474
+ - spec/vcr_cassettes/virtual_machine/console.yml
475
+ - spec/vcr_cassettes/virtual_machine/create.yml
476
+ - spec/vcr_cassettes/virtual_machine/delete.yml
477
+ - spec/vcr_cassettes/virtual_machine/edit.yml
478
+ - spec/vcr_cassettes/virtual_machine/list.yml
479
+ - spec/vcr_cassettes/virtual_machine/migrate.yml
480
+ - spec/vcr_cassettes/virtual_machine/reboot.yml
481
+ - spec/vcr_cassettes/virtual_machine/resize.yml
482
+ - spec/vcr_cassettes/virtual_machine/segregate.yml
483
+ - spec/vcr_cassettes/virtual_machine/set_ssh_keys.yml
484
+ - spec/vcr_cassettes/virtual_machine/set_vip.yml
485
+ - spec/vcr_cassettes/virtual_machine/show.yml
486
+ - spec/vcr_cassettes/virtual_machine/shutdown.yml
487
+ - spec/vcr_cassettes/virtual_machine/startup.yml
488
+ - spec/vcr_cassettes/virtual_machine/stats.yml
489
+ - spec/vcr_cassettes/virtual_machine/stop.yml
490
+ - spec/vcr_cassettes/virtual_machine/suspend.yml
491
+ - spec/vcr_cassettes/virtual_machine/unlock.yml
492
+ - spec/vcr_cassettes/virtual_machine/unsuspend.yml
493
+ - spec/vcr_cassettes/whitelist/create.yml
494
+ - spec/vcr_cassettes/whitelist/delete.yml
495
+ - spec/vcr_cassettes/whitelist/edit.yml
496
+ - spec/vcr_cassettes/whitelist/list.yml
497
+ - spec/vcr_cassettes/whitelist/show.yml
498
+ has_rdoc:
data/.gitignore DELETED
@@ -1,13 +0,0 @@
1
- pkg/*
2
- *.gem
3
- .bundle
4
- .idea
5
- *.swp
6
- *.rbc
7
- test.rb
8
- *~
9
- coverage/
10
- doc/
11
- TODO
12
- Gemfile.lock
13
-
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format p
2
- --color
data/.rvmrc DELETED
@@ -1,41 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # This is an RVM Project .rvmrc file, used to automatically load the ruby
4
- # development environment upon cd'ing into the directory
5
-
6
- # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
7
- environment_id="ruby-1.8.7-p334@squall"
8
-
9
- #
10
- # First we attempt to load the desired environment directly from the environment
11
- # file. This is very fast and efficicent compared to running through the entire
12
- # CLI and selector. If you want feedback on which environment was used then
13
- # insert the word 'use' after --create as this triggers verbose mode.
14
- #
15
- if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
16
- && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
17
- then
18
- \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
19
-
20
- if [[ -s ".rvm/hooks/after_use" ]]
21
- then
22
- . ".rvm/hooks/after_use"
23
- fi
24
- else
25
- # If the environment file has not yet been created, use the RVM CLI to select.
26
- if ! rvm --create "$environment_id"
27
- then
28
- echo "Failed to create RVM environment ''."
29
- fi
30
- fi
31
-
32
- #
33
- # If you use an RVM gemset file to install a list of gems (*.gems), you can have
34
- # it be automatically loaded. Uncomment the following and adjust the filename if
35
- # necessary.
36
- #
37
- # filename=".gems"
38
- # if [[ -s "$filename" ]] ; then
39
- # rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
40
- # fi
41
-
data/.travis.yml DELETED
@@ -1,17 +0,0 @@
1
- language: ruby
2
- script: "bundle exec rake spec"
3
- notifications:
4
- email:
5
- recipients:
6
- - engineering@internal.site5.com
7
- on_success: never
8
- on_failure: always
9
- rvm:
10
- - 1.8.7
11
- - 1.9.2
12
- - 1.9.3
13
- - ree
14
- - rbx-head
15
- - rbx-18mode
16
- - jruby-18mode
17
- - jruby-19mode
@@ -1,50 +0,0 @@
1
- module Squall
2
- class Params
3
- # Required
4
- attr_accessor :valid
5
-
6
- # Optional
7
- attr_accessor :optional
8
-
9
- def initialize
10
- @valid = []
11
- @optional = []
12
- end
13
-
14
- def required(*options)
15
- @valid = options.flatten.map { |o| o.to_sym}
16
- @valid.uniq!
17
- @optional.concat @valid
18
- @optional.uniq!
19
- self
20
- end
21
-
22
- def accepts(*options)
23
- @optional.concat options.flatten.map { |o| o.to_sym}
24
- @optional.uniq!
25
- self
26
- end
27
-
28
- def validate!(*options)
29
- validate_required!(*options) unless @valid.empty?
30
- validate_optionals!(*options) unless @optional.empty?
31
- end
32
-
33
- def validate_required!(*options)
34
- options = options.first.keys if options.first.respond_to?(:keys)
35
- options.map! { |o| o.respond_to?(:to_sym) ? o.to_sym : o }
36
- delta = (@valid - options)
37
- raise ArgumentError, "Missing required params: #{delta.join(',')}" if delta.any?
38
- true
39
- end
40
-
41
- def validate_optionals!(*options)
42
- options = options.first.keys if options.first.respond_to?(:keys)
43
- options.map! { |o| o.respond_to?(:to_sym) ? o.to_sym : o }
44
- options.each do |key|
45
- raise ArgumentError, "Unknown params: #{key}" unless @optional.include?(key)
46
- end
47
- true
48
- end
49
- end
50
- end
@@ -1,5 +0,0 @@
1
- require 'yaml'
2
-
3
- if ::YAML.const_defined?(:ENGINE)
4
- ::YAML::ENGINE.yamler = 'syck'
5
- end