squall 1.2.1beta1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/squall/support/base.rb +4 -4
- data/lib/squall/support/exception.rb +0 -9
- data/lib/squall/support/version.rb +1 -1
- data/lib/squall.rb +0 -1
- data/spec/squall/data_store_zone_spec.rb +8 -20
- data/spec/squall/firewall_rule_spec.rb +0 -12
- data/spec/squall/hypervisor_spec.rb +24 -38
- data/spec/squall/hypervisor_zone_spec.rb +34 -46
- data/spec/squall/ip_address_join_spec.rb +1 -15
- data/spec/squall/ip_address_spec.rb +2 -6
- data/spec/squall/network_spec.rb +2 -12
- data/spec/squall/network_zone_spec.rb +15 -43
- data/spec/squall/payment_spec.rb +9 -22
- data/spec/squall/role_spec.rb +4 -16
- data/spec/squall/support/base_spec.rb +16 -10
- data/spec/squall/template_spec.rb +3 -8
- data/spec/squall/transaction_spec.rb +2 -6
- data/spec/squall/user_group_spec.rb +6 -14
- data/spec/squall/user_spec.rb +12 -44
- data/spec/squall/virtual_machine_spec.rb +0 -102
- data/spec/squall/whitelist_spec.rb +10 -26
- data/squall.gemspec +1 -1
- metadata +76 -161
- data/.rbenv-version +0 -1
- data/lib/squall/support/on_app_errors.rb +0 -23
@@ -33,10 +33,6 @@ describe Squall::VirtualMachine do
|
|
33
33
|
expect { @virtual_machine.show }.to raise_error(ArgumentError)
|
34
34
|
end
|
35
35
|
|
36
|
-
it "returns not found for invalid virtual_machines" do
|
37
|
-
expect { @virtual_machine.show(404) }.to raise_error(Squall::NotFoundError)
|
38
|
-
end
|
39
|
-
|
40
36
|
it "returns a virtual_machine" do
|
41
37
|
virtual_machine = @virtual_machine.show(1)
|
42
38
|
virtual_machine.keys.should include(*@keys)
|
@@ -140,11 +136,6 @@ describe Squall::VirtualMachine do
|
|
140
136
|
@virtual_machine.success.should be_false
|
141
137
|
end
|
142
138
|
|
143
|
-
it "returns not found for invalid virtual_machines" do
|
144
|
-
expect { @virtual_machine.build(404, :template_id => 1) }.to raise_error(Squall::NotFoundError)
|
145
|
-
@virtual_machine.success.should be_false
|
146
|
-
end
|
147
|
-
|
148
139
|
it "builds the VM" do
|
149
140
|
build = @virtual_machine.build(72, :template_id => 1)
|
150
141
|
|
@@ -165,10 +156,6 @@ describe Squall::VirtualMachine do
|
|
165
156
|
@virtual_machine.success.should be_false
|
166
157
|
end
|
167
158
|
|
168
|
-
it "404s on not found" do
|
169
|
-
expect { @virtual_machine.edit(404, :label => 1) }.to raise_error(Squall::NotFoundError)
|
170
|
-
end
|
171
|
-
|
172
159
|
it "accepts all valid keys" do
|
173
160
|
keys = [:label,
|
174
161
|
:hypervisor_id,
|
@@ -216,11 +203,6 @@ describe Squall::VirtualMachine do
|
|
216
203
|
@virtual_machine.success.should be_false
|
217
204
|
end
|
218
205
|
|
219
|
-
it "404s on not found" do
|
220
|
-
expect { @virtual_machine.change_owner(404, 1) }.to raise_error(Squall::NotFoundError)
|
221
|
-
@virtual_machine.success.should be_false
|
222
|
-
end
|
223
|
-
|
224
206
|
pending "this should raise a 422 on OnApp's side, but it's currently raising a 500 which causes HTTParty to explode, see README (and update when fixed)" do
|
225
207
|
it "returns error on unknown user" do
|
226
208
|
expect { @virtual_machine.change_owner(1, 2) }.to raise_error(Squall::ServerError)
|
@@ -248,11 +230,6 @@ describe Squall::VirtualMachine do
|
|
248
230
|
@virtual_machine.success.should be_false
|
249
231
|
end
|
250
232
|
|
251
|
-
it "404s on not found" do
|
252
|
-
expect { @virtual_machine.change_password(404, 'password') }.to raise_error(Squall::NotFoundError)
|
253
|
-
@virtual_machine.success.should be_false
|
254
|
-
end
|
255
|
-
|
256
233
|
it "changes the password" do
|
257
234
|
result = @virtual_machine.change_password(1, 'passwordsareimportant')
|
258
235
|
@virtual_machine.success.should be_true
|
@@ -266,11 +243,6 @@ describe Squall::VirtualMachine do
|
|
266
243
|
@virtual_machine.success.should be_false
|
267
244
|
end
|
268
245
|
|
269
|
-
it "404s on not found" do
|
270
|
-
expect { @virtual_machine.set_ssh_keys(404) }.to raise_error(Squall::NotFoundError)
|
271
|
-
@virtual_machine.success.should be_false
|
272
|
-
end
|
273
|
-
|
274
246
|
it "sets the SSH keys" do
|
275
247
|
result = @virtual_machine.set_ssh_keys(1)
|
276
248
|
@virtual_machine.success.should be_true
|
@@ -295,16 +267,6 @@ describe Squall::VirtualMachine do
|
|
295
267
|
@virtual_machine.migrate 1, :destination => 1, :cold_migrate_on_rollback => 1
|
296
268
|
end
|
297
269
|
|
298
|
-
it "404s on not found" do
|
299
|
-
expect { @virtual_machine.migrate(404, :destination => 1) }.to raise_error(Squall::NotFoundError)
|
300
|
-
@virtual_machine.success.should be_false
|
301
|
-
end
|
302
|
-
|
303
|
-
it "404s on unknown destination" do
|
304
|
-
expect { @virtual_machine.migrate(1, :destination => 404) }.to raise_error(Squall::NotFoundError)
|
305
|
-
@virtual_machine.success.should be_false
|
306
|
-
end
|
307
|
-
|
308
270
|
it "changes the hypervisor" do
|
309
271
|
pending "Broken in OnApp" do
|
310
272
|
result = @virtual_machine.migrate(1, :destination => 2)
|
@@ -320,10 +282,6 @@ describe Squall::VirtualMachine do
|
|
320
282
|
expect { @virtual_machine.set_vip }.to raise_error(ArgumentError)
|
321
283
|
end
|
322
284
|
|
323
|
-
it "returns not found for invalid virtual_machines" do
|
324
|
-
expect { @virtual_machine.set_vip(404) }.to raise_error(Squall::NotFoundError)
|
325
|
-
end
|
326
|
-
|
327
285
|
it "deletes a virtual_machine" do
|
328
286
|
@virtual_machine.set_vip(1)
|
329
287
|
@virtual_machine.success.should be_true
|
@@ -344,10 +302,6 @@ describe Squall::VirtualMachine do
|
|
344
302
|
expect { @virtual_machine.delete }.to raise_error(ArgumentError)
|
345
303
|
end
|
346
304
|
|
347
|
-
it "returns not found for invalid virtual_machines" do
|
348
|
-
expect { @virtual_machine.delete(404) }.to raise_error(Squall::NotFoundError)
|
349
|
-
end
|
350
|
-
|
351
305
|
it "deletes a virtual_machine" do
|
352
306
|
virtual_machine = @virtual_machine.delete(1)
|
353
307
|
@virtual_machine.success.should be_true
|
@@ -360,10 +314,6 @@ describe Squall::VirtualMachine do
|
|
360
314
|
expect { @virtual_machine.resize }.to raise_error(ArgumentError)
|
361
315
|
end
|
362
316
|
|
363
|
-
it "returns not found for invalid virtual_machines" do
|
364
|
-
expect { @virtual_machine.resize(404, :memory => 1) }.to raise_error(Squall::NotFoundError)
|
365
|
-
end
|
366
|
-
|
367
317
|
it "accepts memory" do
|
368
318
|
hash = [:post, "/virtual_machines/1/resize.json", @virtual_machine.default_params(:memory => 1)]
|
369
319
|
@virtual_machine.should_receive(:request).with(*hash).once.and_return({'virtual_machine'=>{}})
|
@@ -406,10 +356,6 @@ describe Squall::VirtualMachine do
|
|
406
356
|
expect { @virtual_machine.suspend }.to raise_error(ArgumentError)
|
407
357
|
end
|
408
358
|
|
409
|
-
it "returns not found for invalid virtual_machines" do
|
410
|
-
expect { @virtual_machine.suspend(404) }.to raise_error(Squall::NotFoundError)
|
411
|
-
end
|
412
|
-
|
413
359
|
it "suspends a virtual_machine" do
|
414
360
|
virtual_machine = @virtual_machine.suspend(1)
|
415
361
|
virtual_machine['suspended'].should be_true
|
@@ -422,10 +368,6 @@ describe Squall::VirtualMachine do
|
|
422
368
|
expect { @virtual_machine.unlock }.to raise_error(ArgumentError)
|
423
369
|
end
|
424
370
|
|
425
|
-
it "returns not found for invalid virtual_machines" do
|
426
|
-
expect { @virtual_machine.unlock(404) }.to raise_error(Squall::NotFoundError)
|
427
|
-
end
|
428
|
-
|
429
371
|
it "unlocks a virtual_machine" do
|
430
372
|
virtual_machine = @virtual_machine.unlock(1)
|
431
373
|
virtual_machine['locked'].should be_false
|
@@ -439,11 +381,6 @@ describe Squall::VirtualMachine do
|
|
439
381
|
@virtual_machine.success.should be_false
|
440
382
|
end
|
441
383
|
|
442
|
-
it "returns not found for invalid virtual_machines" do
|
443
|
-
expect { @virtual_machine.startup(404) }.to raise_error(Squall::NotFoundError)
|
444
|
-
@virtual_machine.success.should be_false
|
445
|
-
end
|
446
|
-
|
447
384
|
it "startups a virtual_machine" do
|
448
385
|
@virtual_machine.startup(1)
|
449
386
|
@virtual_machine.success.should be_true
|
@@ -457,11 +394,6 @@ describe Squall::VirtualMachine do
|
|
457
394
|
@virtual_machine.success.should be_false
|
458
395
|
end
|
459
396
|
|
460
|
-
it "returns not found for invalid virtual_machines" do
|
461
|
-
expect { @virtual_machine.shutdown(404) }.to raise_error(Squall::NotFoundError)
|
462
|
-
@virtual_machine.success.should be_false
|
463
|
-
end
|
464
|
-
|
465
397
|
it "will shutdown a virtual_machine" do
|
466
398
|
virtual_machine = @virtual_machine.shutdown(1)
|
467
399
|
@virtual_machine.success.should be_true
|
@@ -475,11 +407,6 @@ describe Squall::VirtualMachine do
|
|
475
407
|
@virtual_machine.success.should be_false
|
476
408
|
end
|
477
409
|
|
478
|
-
it "returns not found for invalid virtual_machines" do
|
479
|
-
expect { @virtual_machine.stop(404) }.to raise_error(Squall::NotFoundError)
|
480
|
-
@virtual_machine.success.should be_false
|
481
|
-
end
|
482
|
-
|
483
410
|
it "will stop a virtual_machine" do
|
484
411
|
virtual_machine = @virtual_machine.stop(1)
|
485
412
|
@virtual_machine.success.should be_true
|
@@ -493,11 +420,6 @@ describe Squall::VirtualMachine do
|
|
493
420
|
@virtual_machine.success.should be_false
|
494
421
|
end
|
495
422
|
|
496
|
-
it "returns not found for invalid virtual_machines" do
|
497
|
-
expect { @virtual_machine.reboot(404) }.to raise_error(Squall::NotFoundError)
|
498
|
-
@virtual_machine.success.should be_false
|
499
|
-
end
|
500
|
-
|
501
423
|
it "will reboot a virtual_machine" do
|
502
424
|
virtual_machine = @virtual_machine.reboot(1)
|
503
425
|
@virtual_machine.success.should be_true
|
@@ -522,16 +444,6 @@ describe Squall::VirtualMachine do
|
|
522
444
|
@virtual_machine.success.should be_false
|
523
445
|
end
|
524
446
|
|
525
|
-
it "404s on not found" do
|
526
|
-
expect { @virtual_machine.segregate(404, 1) }.to raise_error(Squall::NotFoundError)
|
527
|
-
@virtual_machine.success.should be_false
|
528
|
-
end
|
529
|
-
|
530
|
-
it "returns 404 on unknown target vm id" do
|
531
|
-
expect { @virtual_machine.segregate(1, 404) }.to raise_error(Squall::NotFoundError)
|
532
|
-
@virtual_machine.success.should be_false
|
533
|
-
end
|
534
|
-
|
535
447
|
it "segregates the VMS with given ids" do
|
536
448
|
result = @virtual_machine.segregate(1, 2)
|
537
449
|
@virtual_machine.success.should be_true
|
@@ -545,13 +457,6 @@ describe Squall::VirtualMachine do
|
|
545
457
|
@virtual_machine.success.should be_false
|
546
458
|
end
|
547
459
|
|
548
|
-
it "returns not found for invalid virtual_machines" do
|
549
|
-
pending "broken on OnApp (returning 500)" do
|
550
|
-
expect { @virtual_machine.console(404) }.to raise_error(Squall::NotFoundError)
|
551
|
-
@virtual_machine.success.should be_false
|
552
|
-
end
|
553
|
-
end
|
554
|
-
|
555
460
|
it "will reboot a virtual_machine" do
|
556
461
|
pending "broken on OnApp (returning 500)" do
|
557
462
|
virtual_machine = @virtual_machine.console(1)
|
@@ -567,13 +472,6 @@ describe Squall::VirtualMachine do
|
|
567
472
|
@virtual_machine.success.should be_false
|
568
473
|
end
|
569
474
|
|
570
|
-
it "returns not found for invalid virtual_machines" do
|
571
|
-
pending "broken on OnApp (returning 500)" do
|
572
|
-
expect { @virtual_machine.stats(404) }.to raise_error(Squall::NotFoundError)
|
573
|
-
@virtual_machine.success.should be_false
|
574
|
-
end
|
575
|
-
end
|
576
|
-
|
577
475
|
it "will stop a virtual_machine" do
|
578
476
|
pending "broken on OnApp (returning 500)" do
|
579
477
|
virtual_machine = @virtual_machine.stats(1)
|
@@ -8,11 +8,11 @@ describe Squall::Whitelist do
|
|
8
8
|
|
9
9
|
describe "#list" do
|
10
10
|
use_vcr_cassette "whitelist/list"
|
11
|
-
|
11
|
+
|
12
12
|
it "requires user id" do
|
13
13
|
expect { @whitelist.list }.to raise_error(ArgumentError)
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
it "returns a user's whitelists" do
|
17
17
|
whitelists = @whitelist.list(1)
|
18
18
|
whitelists.should be_an(Array)
|
@@ -23,30 +23,26 @@ describe Squall::Whitelist do
|
|
23
23
|
whitelists.all? {|w| w.is_a?(Hash) }.should be_true
|
24
24
|
end
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
describe "#show" do
|
28
28
|
use_vcr_cassette "whitelist/show"
|
29
29
|
it "requires an id" do
|
30
30
|
expect { @whitelist.show(1) }.to raise_error(ArgumentError)
|
31
31
|
end
|
32
32
|
|
33
|
-
it "returns not found for invalid whitelists" do
|
34
|
-
expect { @whitelist.show(1, 404) }.to raise_error(Squall::NotFoundError)
|
35
|
-
end
|
36
|
-
|
37
33
|
it "returns a whitelist" do
|
38
34
|
whitelist = @whitelist.show(1, 2)
|
39
35
|
whitelist.should be_a(Hash)
|
40
36
|
end
|
41
37
|
end
|
42
|
-
|
38
|
+
|
43
39
|
describe "#create" do
|
44
40
|
use_vcr_cassette "whitelist/create"
|
45
41
|
it "requires amount" do
|
46
42
|
invalid = @valid.reject{|k,v| k == :ip }
|
47
43
|
requires_attr(:ip) { @whitelist.create(1, invalid) }
|
48
44
|
end
|
49
|
-
|
45
|
+
|
50
46
|
it "allows all optional params" do
|
51
47
|
optional = [:description]
|
52
48
|
@whitelist.should_receive(:request).exactly(optional.size).times.and_return Hash.new("whitelist" => {})
|
@@ -54,24 +50,20 @@ describe Squall::Whitelist do
|
|
54
50
|
@whitelist.create(1, @valid.merge(param => "test"))
|
55
51
|
end
|
56
52
|
end
|
57
|
-
|
53
|
+
|
58
54
|
it "raises error on unknown params" do
|
59
55
|
expect { @whitelist.create(1, @valid.merge(:what => 'what')) }.to raise_error(ArgumentError, 'Unknown params: what')
|
60
56
|
end
|
61
|
-
|
62
|
-
it "raises an error for an invalid user id" do
|
63
|
-
expect { @whitelist.create(404, @valid) }.to raise_error(Squall::NotFoundError)
|
64
|
-
end
|
65
57
|
|
66
58
|
it "creates a whitelist for a user" do
|
67
59
|
@whitelist.create(1, @valid)
|
68
60
|
@whitelist.success.should be_true
|
69
61
|
end
|
70
62
|
end
|
71
|
-
|
63
|
+
|
72
64
|
describe "#edit" do
|
73
65
|
use_vcr_cassette "whitelist/edit"
|
74
|
-
|
66
|
+
|
75
67
|
it "allows select params" do
|
76
68
|
optional = [:ip, :description]
|
77
69
|
@whitelist.should_receive(:request).exactly(optional.size).times.and_return Hash.new()
|
@@ -79,7 +71,7 @@ describe Squall::Whitelist do
|
|
79
71
|
@whitelist.edit(1, 1, param => "test")
|
80
72
|
end
|
81
73
|
end
|
82
|
-
|
74
|
+
|
83
75
|
it "raises error on unknown params" do
|
84
76
|
expect { @whitelist.edit(1, 1, :what => 'what') }.to raise_error(ArgumentError, 'Unknown params: what')
|
85
77
|
end
|
@@ -88,12 +80,8 @@ describe Squall::Whitelist do
|
|
88
80
|
@whitelist.edit(1, 1, :description => "This is actually a different computer.")
|
89
81
|
@whitelist.success.should be_true
|
90
82
|
end
|
91
|
-
|
92
|
-
it "raises an error for an invalid whitelist id" do
|
93
|
-
expect { @whitelist.edit(1, 404, @valid) }.to raise_error(Squall::NotFoundError)
|
94
|
-
end
|
95
83
|
end
|
96
|
-
|
84
|
+
|
97
85
|
describe "#delete" do
|
98
86
|
use_vcr_cassette "whitelist/delete"
|
99
87
|
it "requires an id" do
|
@@ -104,10 +92,6 @@ describe Squall::Whitelist do
|
|
104
92
|
@whitelist.delete(1, 1)
|
105
93
|
@whitelist.success.should be_true
|
106
94
|
end
|
107
|
-
|
108
|
-
it "returns NotFound for missing user" do
|
109
|
-
expect { @whitelist.delete(1, 404) }.to raise_error(Squall::NotFoundError)
|
110
|
-
end
|
111
95
|
end
|
112
96
|
|
113
97
|
end
|
data/squall.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
|
17
17
|
s.add_runtime_dependency 'faraday', '~> 0.8.1'
|
18
18
|
s.add_runtime_dependency 'faraday_middleware', '~> 0.8.7'
|
19
|
-
s.add_runtime_dependency 'json', '~> 1.7.3'
|
19
|
+
s.add_runtime_dependency 'json', '~> 1.7.3'
|
20
20
|
s.add_runtime_dependency('jruby-openssl', '~> 0.7.3') if RUBY_PLATFORM == 'java'
|
21
21
|
|
22
22
|
s.add_development_dependency 'rspec', '~> 2.10.0'
|
metadata
CHANGED
@@ -1,20 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: squall
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.3.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Justin Mazzi
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
13
|
-
default_executable:
|
12
|
+
date: 2012-08-27 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: faraday
|
17
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
18
|
requirements:
|
20
19
|
- - ~>
|
@@ -22,21 +21,47 @@ dependencies:
|
|
22
21
|
version: 0.8.1
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.8.1
|
26
30
|
- !ruby/object:Gem::Dependency
|
27
31
|
name: faraday_middleware
|
28
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 0.8.7
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
29
41
|
none: false
|
30
42
|
requirements:
|
31
43
|
- - ~>
|
32
44
|
- !ruby/object:Gem::Version
|
33
45
|
version: 0.8.7
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: json
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.7.3
|
34
54
|
type: :runtime
|
35
55
|
prerelease: false
|
36
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.7.3
|
37
62
|
- !ruby/object:Gem::Dependency
|
38
63
|
name: rspec
|
39
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
40
65
|
none: false
|
41
66
|
requirements:
|
42
67
|
- - ~>
|
@@ -44,10 +69,15 @@ dependencies:
|
|
44
69
|
version: 2.10.0
|
45
70
|
type: :development
|
46
71
|
prerelease: false
|
47
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 2.10.0
|
48
78
|
- !ruby/object:Gem::Dependency
|
49
79
|
name: fakeweb
|
50
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
51
81
|
none: false
|
52
82
|
requirements:
|
53
83
|
- - ~>
|
@@ -55,10 +85,15 @@ dependencies:
|
|
55
85
|
version: '1.3'
|
56
86
|
type: :development
|
57
87
|
prerelease: false
|
58
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '1.3'
|
59
94
|
- !ruby/object:Gem::Dependency
|
60
95
|
name: vcr
|
61
|
-
requirement:
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
62
97
|
none: false
|
63
98
|
requirements:
|
64
99
|
- - ~>
|
@@ -66,10 +101,15 @@ dependencies:
|
|
66
101
|
version: '1.8'
|
67
102
|
type: :development
|
68
103
|
prerelease: false
|
69
|
-
version_requirements:
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '1.8'
|
70
110
|
- !ruby/object:Gem::Dependency
|
71
111
|
name: awesome_print
|
72
|
-
requirement:
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
73
113
|
none: false
|
74
114
|
requirements:
|
75
115
|
- - ~>
|
@@ -77,10 +117,15 @@ dependencies:
|
|
77
117
|
version: 1.0.2
|
78
118
|
type: :development
|
79
119
|
prerelease: false
|
80
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 1.0.2
|
81
126
|
- !ruby/object:Gem::Dependency
|
82
127
|
name: rake
|
83
|
-
requirement:
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
84
129
|
none: false
|
85
130
|
requirements:
|
86
131
|
- - ~>
|
@@ -88,7 +133,12 @@ dependencies:
|
|
88
133
|
version: 0.9.2.2
|
89
134
|
type: :development
|
90
135
|
prerelease: false
|
91
|
-
version_requirements:
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ~>
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 0.9.2.2
|
92
142
|
description: A Ruby library for working with the OnApp REST API
|
93
143
|
email:
|
94
144
|
- jmazzi@site5.com
|
@@ -97,7 +147,6 @@ extensions: []
|
|
97
147
|
extra_rdoc_files: []
|
98
148
|
files:
|
99
149
|
- .gitignore
|
100
|
-
- .rbenv-version
|
101
150
|
- .rspec
|
102
151
|
- .rvmrc
|
103
152
|
- .travis.yml
|
@@ -120,7 +169,6 @@ files:
|
|
120
169
|
- lib/squall/support/base.rb
|
121
170
|
- lib/squall/support/config.rb
|
122
171
|
- lib/squall/support/exception.rb
|
123
|
-
- lib/squall/support/on_app_errors.rb
|
124
172
|
- lib/squall/support/params.rb
|
125
173
|
- lib/squall/support/version.rb
|
126
174
|
- lib/squall/support/yaml.rb
|
@@ -266,7 +314,6 @@ files:
|
|
266
314
|
- spec/vcr_cassettes/whitelist/list.yml
|
267
315
|
- spec/vcr_cassettes/whitelist/show.yml
|
268
316
|
- squall.gemspec
|
269
|
-
has_rdoc: true
|
270
317
|
homepage: ''
|
271
318
|
licenses: []
|
272
319
|
post_install_message:
|
@@ -281,152 +328,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
281
328
|
version: '0'
|
282
329
|
segments:
|
283
330
|
- 0
|
284
|
-
hash: -
|
331
|
+
hash: -4354418845282087791
|
285
332
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
286
333
|
none: false
|
287
334
|
requirements:
|
288
|
-
- - ! '
|
335
|
+
- - ! '>='
|
289
336
|
- !ruby/object:Gem::Version
|
290
|
-
version:
|
337
|
+
version: '0'
|
338
|
+
segments:
|
339
|
+
- 0
|
340
|
+
hash: -4354418845282087791
|
291
341
|
requirements: []
|
292
342
|
rubyforge_project: squall
|
293
|
-
rubygems_version: 1.
|
343
|
+
rubygems_version: 1.8.23
|
294
344
|
signing_key:
|
295
345
|
specification_version: 3
|
296
346
|
summary: A Ruby library for working with the OnApp REST API
|
297
|
-
test_files:
|
298
|
-
- spec/spec_helper.rb
|
299
|
-
- spec/squall/data_store_zone_spec.rb
|
300
|
-
- spec/squall/firewall_rule_spec.rb
|
301
|
-
- spec/squall/hypervisor_spec.rb
|
302
|
-
- spec/squall/hypervisor_zone_spec.rb
|
303
|
-
- spec/squall/ip_address_join_spec.rb
|
304
|
-
- spec/squall/ip_address_spec.rb
|
305
|
-
- spec/squall/network_spec.rb
|
306
|
-
- spec/squall/network_zone_spec.rb
|
307
|
-
- spec/squall/payment_spec.rb
|
308
|
-
- spec/squall/role_spec.rb
|
309
|
-
- spec/squall/statistic_spec.rb
|
310
|
-
- spec/squall/support/base_spec.rb
|
311
|
-
- spec/squall/support/config_spec.rb
|
312
|
-
- spec/squall/support/params_spec.rb
|
313
|
-
- spec/squall/template_spec.rb
|
314
|
-
- spec/squall/transaction_spec.rb
|
315
|
-
- spec/squall/user_group_spec.rb
|
316
|
-
- spec/squall/user_spec.rb
|
317
|
-
- spec/squall/virtual_machine_spec.rb
|
318
|
-
- spec/squall/whitelist_spec.rb
|
319
|
-
- spec/squall_spec.rb
|
320
|
-
- spec/vcr_cassettes/data_store_zone/create.yml
|
321
|
-
- spec/vcr_cassettes/data_store_zone/delete.yml
|
322
|
-
- spec/vcr_cassettes/data_store_zone/edit.yml
|
323
|
-
- spec/vcr_cassettes/data_store_zone/list.yml
|
324
|
-
- spec/vcr_cassettes/data_store_zone/show.yml
|
325
|
-
- spec/vcr_cassettes/firewall_rule/create.yml
|
326
|
-
- spec/vcr_cassettes/firewall_rule/delete.yml
|
327
|
-
- spec/vcr_cassettes/firewall_rule/edit.yml
|
328
|
-
- spec/vcr_cassettes/firewall_rule/list.yml
|
329
|
-
- spec/vcr_cassettes/hypervisor/add_data_store_join.yml
|
330
|
-
- spec/vcr_cassettes/hypervisor/add_network_join.yml
|
331
|
-
- spec/vcr_cassettes/hypervisor/create.yml
|
332
|
-
- spec/vcr_cassettes/hypervisor/data_store_joins.yml
|
333
|
-
- spec/vcr_cassettes/hypervisor/delete.yml
|
334
|
-
- spec/vcr_cassettes/hypervisor/edit.yml
|
335
|
-
- spec/vcr_cassettes/hypervisor/list.yml
|
336
|
-
- spec/vcr_cassettes/hypervisor/network_joins.yml
|
337
|
-
- spec/vcr_cassettes/hypervisor/reboot.yml
|
338
|
-
- spec/vcr_cassettes/hypervisor/remove_data_store_join.yml
|
339
|
-
- spec/vcr_cassettes/hypervisor/remove_network_join.yml
|
340
|
-
- spec/vcr_cassettes/hypervisor/show.yml
|
341
|
-
- spec/vcr_cassettes/hypervisor_zones/add_data_store_join.yml
|
342
|
-
- spec/vcr_cassettes/hypervisor_zones/add_network_join.yml
|
343
|
-
- spec/vcr_cassettes/hypervisor_zones/create.yml
|
344
|
-
- spec/vcr_cassettes/hypervisor_zones/data_store_joins.yml
|
345
|
-
- spec/vcr_cassettes/hypervisor_zones/delete.yml
|
346
|
-
- spec/vcr_cassettes/hypervisor_zones/edit.yml
|
347
|
-
- spec/vcr_cassettes/hypervisor_zones/hypervisors.yml
|
348
|
-
- spec/vcr_cassettes/hypervisor_zones/list.yml
|
349
|
-
- spec/vcr_cassettes/hypervisor_zones/network_joins.yml
|
350
|
-
- spec/vcr_cassettes/hypervisor_zones/remove_data_store_join.yml
|
351
|
-
- spec/vcr_cassettes/hypervisor_zones/remove_network_join.yml
|
352
|
-
- spec/vcr_cassettes/hypervisor_zones/show.yml
|
353
|
-
- spec/vcr_cassettes/ipaddress/create.yml
|
354
|
-
- spec/vcr_cassettes/ipaddress/delete.yml
|
355
|
-
- spec/vcr_cassettes/ipaddress/edit.yml
|
356
|
-
- spec/vcr_cassettes/ipaddress/list.yml
|
357
|
-
- spec/vcr_cassettes/ipaddress_join/assign.yml
|
358
|
-
- spec/vcr_cassettes/ipaddress_join/delete.yml
|
359
|
-
- spec/vcr_cassettes/ipaddress_join/list.yml
|
360
|
-
- spec/vcr_cassettes/network/create.yml
|
361
|
-
- spec/vcr_cassettes/network/delete.yml
|
362
|
-
- spec/vcr_cassettes/network/edit.yml
|
363
|
-
- spec/vcr_cassettes/network/list.yml
|
364
|
-
- spec/vcr_cassettes/network_zones/attach.yml
|
365
|
-
- spec/vcr_cassettes/network_zones/create.yml
|
366
|
-
- spec/vcr_cassettes/network_zones/delete.yml
|
367
|
-
- spec/vcr_cassettes/network_zones/detach.yml
|
368
|
-
- spec/vcr_cassettes/network_zones/edit.yml
|
369
|
-
- spec/vcr_cassettes/network_zones/list.yml
|
370
|
-
- spec/vcr_cassettes/network_zones/show.yml
|
371
|
-
- spec/vcr_cassettes/payment/create.yml
|
372
|
-
- spec/vcr_cassettes/payment/delete.yml
|
373
|
-
- spec/vcr_cassettes/payment/edit.yml
|
374
|
-
- spec/vcr_cassettes/payment/list.yml
|
375
|
-
- spec/vcr_cassettes/role/create.yml
|
376
|
-
- spec/vcr_cassettes/role/delete.yml
|
377
|
-
- spec/vcr_cassettes/role/edit.yml
|
378
|
-
- spec/vcr_cassettes/role/list.yml
|
379
|
-
- spec/vcr_cassettes/role/permissions.yml
|
380
|
-
- spec/vcr_cassettes/role/show.yml
|
381
|
-
- spec/vcr_cassettes/statistic/usage_statistics.yml
|
382
|
-
- spec/vcr_cassettes/template/list.yml
|
383
|
-
- spec/vcr_cassettes/template/make_public.yml
|
384
|
-
- spec/vcr_cassettes/transaction/list.yml
|
385
|
-
- spec/vcr_cassettes/transaction/show.yml
|
386
|
-
- spec/vcr_cassettes/user/activate.yml
|
387
|
-
- spec/vcr_cassettes/user/create.yml
|
388
|
-
- spec/vcr_cassettes/user/data_store_zones.yml
|
389
|
-
- spec/vcr_cassettes/user/delete.yml
|
390
|
-
- spec/vcr_cassettes/user/edit.yml
|
391
|
-
- spec/vcr_cassettes/user/edit_role.yml
|
392
|
-
- spec/vcr_cassettes/user/generate_api_key.yml
|
393
|
-
- spec/vcr_cassettes/user/hypervisors.yml
|
394
|
-
- spec/vcr_cassettes/user/limits.yml
|
395
|
-
- spec/vcr_cassettes/user/list.yml
|
396
|
-
- spec/vcr_cassettes/user/monthly_bills.yml
|
397
|
-
- spec/vcr_cassettes/user/network_zones.yml
|
398
|
-
- spec/vcr_cassettes/user/show.yml
|
399
|
-
- spec/vcr_cassettes/user/stats.yml
|
400
|
-
- spec/vcr_cassettes/user/suspend.yml
|
401
|
-
- spec/vcr_cassettes/user/virtual_machines.yml
|
402
|
-
- spec/vcr_cassettes/user_group/create.yml
|
403
|
-
- spec/vcr_cassettes/user_group/delete.yml
|
404
|
-
- spec/vcr_cassettes/user_group/edit.yml
|
405
|
-
- spec/vcr_cassettes/user_group/list.yml
|
406
|
-
- spec/vcr_cassettes/virtual_machine/build.yml
|
407
|
-
- spec/vcr_cassettes/virtual_machine/change_owner.yml
|
408
|
-
- spec/vcr_cassettes/virtual_machine/change_password.yml
|
409
|
-
- spec/vcr_cassettes/virtual_machine/console.yml
|
410
|
-
- spec/vcr_cassettes/virtual_machine/create.yml
|
411
|
-
- spec/vcr_cassettes/virtual_machine/delete.yml
|
412
|
-
- spec/vcr_cassettes/virtual_machine/edit.yml
|
413
|
-
- spec/vcr_cassettes/virtual_machine/list.yml
|
414
|
-
- spec/vcr_cassettes/virtual_machine/migrate.yml
|
415
|
-
- spec/vcr_cassettes/virtual_machine/reboot.yml
|
416
|
-
- spec/vcr_cassettes/virtual_machine/resize.yml
|
417
|
-
- spec/vcr_cassettes/virtual_machine/segregate.yml
|
418
|
-
- spec/vcr_cassettes/virtual_machine/set_ssh_keys.yml
|
419
|
-
- spec/vcr_cassettes/virtual_machine/set_vip.yml
|
420
|
-
- spec/vcr_cassettes/virtual_machine/show.yml
|
421
|
-
- spec/vcr_cassettes/virtual_machine/shutdown.yml
|
422
|
-
- spec/vcr_cassettes/virtual_machine/startup.yml
|
423
|
-
- spec/vcr_cassettes/virtual_machine/stats.yml
|
424
|
-
- spec/vcr_cassettes/virtual_machine/stop.yml
|
425
|
-
- spec/vcr_cassettes/virtual_machine/suspend.yml
|
426
|
-
- spec/vcr_cassettes/virtual_machine/unlock.yml
|
427
|
-
- spec/vcr_cassettes/virtual_machine/unsuspend.yml
|
428
|
-
- spec/vcr_cassettes/whitelist/create.yml
|
429
|
-
- spec/vcr_cassettes/whitelist/delete.yml
|
430
|
-
- spec/vcr_cassettes/whitelist/edit.yml
|
431
|
-
- spec/vcr_cassettes/whitelist/list.yml
|
432
|
-
- spec/vcr_cassettes/whitelist/show.yml
|
347
|
+
test_files: []
|
data/.rbenv-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.9.2-p290
|