squall 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- squall (1.0.0)
4
+ squall (1.0.1)
5
5
  httparty (~> 0.7.4)
6
6
 
7
7
  GEM
@@ -13,10 +13,5 @@ module Squall
13
13
  response = request(:post, "/templates/#{id}/make_public.json")
14
14
  response.first[1]
15
15
  end
16
-
17
- # Download a Template image
18
- def download(id)
19
- response = request(:get, "/templates.json?remote_template_id=#{id}")
20
- end
21
16
  end
22
17
  end
@@ -1,3 +1,3 @@
1
1
  module Squall
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
@@ -41,19 +41,4 @@ describe Squall::Template do
41
41
  pub.keys.should include(*@keys)
42
42
  end
43
43
  end
44
-
45
- describe "#download" do
46
- use_vcr_cassette 'template/download'
47
- it "requires an id" do
48
- expect { @template.download }.to raise_error(ArgumentError)
49
- @template.success.should be_false
50
- end
51
-
52
- it "404s on not found" do
53
- pending "Broken in OnApp" do
54
- expect { @template.download(404) }.to raise_error(Squall::NotFound)
55
- @template.success.should be_false
56
- end
57
- end
58
- end
59
44
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: squall
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Mazzi
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-06 00:00:00 -04:00
18
+ date: 2011-05-09 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -189,7 +189,6 @@ files:
189
189
  - spec/vcr_cassettes/role/permissions.yml
190
190
  - spec/vcr_cassettes/role/show.yml
191
191
  - spec/vcr_cassettes/statistic/usage_statistics.yml
192
- - spec/vcr_cassettes/template/download.yml
193
192
  - spec/vcr_cassettes/template/list.yml
194
193
  - spec/vcr_cassettes/template/make_public.yml
195
194
  - spec/vcr_cassettes/transaction/list.yml
@@ -289,7 +288,6 @@ test_files:
289
288
  - spec/vcr_cassettes/role/permissions.yml
290
289
  - spec/vcr_cassettes/role/show.yml
291
290
  - spec/vcr_cassettes/statistic/usage_statistics.yml
292
- - spec/vcr_cassettes/template/download.yml
293
291
  - spec/vcr_cassettes/template/list.yml
294
292
  - spec/vcr_cassettes/template/make_public.yml
295
293
  - spec/vcr_cassettes/transaction/list.yml
@@ -1,40 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: http://user:pass@www.example.com:80/templates.json?remote_template_id=404
6
- body:
7
- headers:
8
- content-type:
9
- - application/json
10
- authorization:
11
- - Basic WHAT
12
- response: !ruby/struct:VCR::Response
13
- status: !ruby/struct:VCR::ResponseStatus
14
- code: 200
15
- message: OK
16
- headers:
17
- x-ua-compatible:
18
- - IE=Edge,chrome=1
19
- etag:
20
- - "\"4c0d1111142b38d81129a0b6f51e87e6\""
21
- x-powered-by:
22
- - Phusion Passenger (mod_rails/mod_rack) 3.0.1
23
- content-type:
24
- - application/json; charset=utf-8
25
- x-runtime:
26
- - "5.851447"
27
- server:
28
- - Apache/2.2.3 (CentOS)
29
- date:
30
- - Tue, 19 Apr 2011 15:04:49 GMT
31
- set-cookie:
32
- - _onapp_session=WHAT; path=/; HttpOnly
33
- status:
34
- - "200"
35
- cache-control:
36
- - max-age=0, private, must-revalidate
37
- transfer-encoding:
38
- - chunked
39
- body: "[{\"image_template\":{\"label\":\"CentOS 5.5 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":true,\"checksum\":\"348e4b17225885109f13686c757c6e0b\",\"file_name\":\"centos-5.5-x64-1.2.tar.gz\",\"id\":1,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":true,\"template_size\":313544,\"user_id\":null,\"version\":\"1.2\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"CentOS 5.5 x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":true,\"checksum\":\"fb198a5a2b0766bb7ea86750c886807c\",\"file_name\":\"centos-5.5-x86-1.3.tar.gz\",\"id\":2,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":true,\"template_size\":295300,\"user_id\":null,\"version\":\"1.3\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Debian 5.0 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"619af85550cc34fad74af8e145bd78c1\",\"file_name\":\"debian-5.0-x64-2.1.tar.gz\",\"id\":3,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":211800,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Debian 5.0 x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"3a74f9698528aeb769497032bca4ff6b\",\"file_name\":\"debian-5.0-x86-1.0.tar.gz\",\"id\":4,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":144972,\"user_id\":null,\"version\":\"1.0\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Debian 6.0.0 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"bd8aea09f99e6811c47b88369d6e7fb6\",\"file_name\":\"debian-6.0.0-x64-1.1.tar.gz\",\"id\":5,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":173636,\"user_id\":null,\"version\":\"1.1\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Fedora 13 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"b9be9613b664abfb6fb3e2f883a0a4b3\",\"file_name\":\"fedora-13-x64-1.3.tar.gz\",\"id\":6,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":289864,\"user_id\":null,\"version\":\"1.3\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Fedora 13 x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"f367c4c9c9f7ca28e76c0d24c5292d7b\",\"file_name\":\"fedora-13-x86-1.3.tar.gz\",\"id\":7,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":278916,\"user_id\":null,\"version\":\"1.3\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Fedora 14 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"7d3cd5c1511b1262be477b138b1c3013\",\"file_name\":\"fedora-14-x64-1.3.tar.gz\",\"id\":8,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":224980,\"user_id\":null,\"version\":\"1.3\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Fedora 14 x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"c2ba61f05620719a6838a501a6a0794a\",\"file_name\":\"fedora-14-x86-1.3.tar.gz\",\"id\":9,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":221520,\"user_id\":null,\"version\":\"1.3\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Gentoo 10.1_2.6.34 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"gentoo\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"4cc4f6933b20a76bc2947245cfd2ad69\",\"file_name\":\"gentoo-10.1_2.6.34-x64-1.1.tar.gz\",\"id\":10,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":248200,\"user_id\":null,\"version\":\"1.1\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Red Hat Enterprise Linux 5.6 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":false,\"checksum\":\"98639a7c919e41cb8a9bebff5d4889fa\",\"file_name\":\"rhel-5.6-x64-1.0.tar.gz\",\"id\":11,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":false,\"template_size\":203604,\"user_id\":null,\"version\":\"1.0\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Red Hat Enterprise Linux 6.0 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"rhel\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":false,\"checksum\":\"d6acbda4bd264ac6087b87f27d1bc5ec\",\"file_name\":\"rhel-6.0-x64-1.2.tar.gz\",\"id\":12,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":false,\"template_size\":261636,\"user_id\":null,\"version\":\"1.2\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Ubuntu 10.04 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"d4aae5ac706775eca43849110aa27d26\",\"file_name\":\"ubuntu-10.04-x64-1.3.tar.gz\",\"id\":13,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":259296,\"user_id\":null,\"version\":\"1.3\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Ubuntu 10.10 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"bf511e473f44285293fd5dc4b12833e5\",\"file_name\":\"ubuntu-10.10-x64-1.1.tar.gz\",\"id\":14,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":185664,\"user_id\":null,\"version\":\"1.1\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Ubuntu 8.04 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"ff8d1460c29d6e7cea5554c9fdba9295\",\"file_name\":\"ubuntu-8.04-x64-3.2.tar.gz\",\"id\":15,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":206840,\"user_id\":null,\"version\":\"3.2\",\"min_disk_size\":5,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Windows 2003 Standard Edition R2 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"2003\",\"operating_system\":\"windows\",\"operating_system_tail\":\"R2\",\"allowed_swap\":false,\"operating_system_edition\":\"STD\",\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"883cfbbfba5d38a7d261fca56b15c792\",\"file_name\":\"win03_x64_std_r2-ver2.1.img\",\"id\":16,\"virtualization\":\"xen\",\"allowed_hot_migrate\":null,\"template_size\":5517228,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":10,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Windows 2003 Standard Edition x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"2003\",\"operating_system\":\"windows\",\"operating_system_tail\":null,\"allowed_swap\":false,\"operating_system_edition\":\"STD\",\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"d645c366cba0ba542a2cc1aaa938abd9\",\"file_name\":\"win03_x64_std-ver2.1.img\",\"id\":17,\"virtualization\":\"xen\",\"allowed_hot_migrate\":null,\"template_size\":7403672,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":10,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Windows 2003 Standard Edition R2 x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"2003\",\"operating_system\":\"windows\",\"operating_system_tail\":\"R2\",\"allowed_swap\":false,\"operating_system_edition\":\"STD\",\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"72d64f28d6fb1cf8b7adc8cd2889eb75\",\"file_name\":\"win03_x86_std_r2-ver2.1.img\",\"id\":18,\"virtualization\":\"xen\",\"allowed_hot_migrate\":null,\"template_size\":5663372,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":10,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Windows 2008 Standard Edition R2 x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"2008\",\"operating_system\":\"windows\",\"operating_system_tail\":\"R2\",\"allowed_swap\":false,\"operating_system_edition\":\"STD\",\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"b6d846754b512fcfbb65914688b0d5c6\",\"file_name\":\"win08_x64_std_r2-ver2.1.img\",\"id\":19,\"virtualization\":\"xen\",\"allowed_hot_migrate\":true,\"template_size\":8994272,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":20,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Windows 2008 Standard Edition x64\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x64\",\"operating_system_distro\":\"2008\",\"operating_system\":\"windows\",\"operating_system_tail\":null,\"allowed_swap\":false,\"operating_system_edition\":\"STD\",\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"7bb5c9b21b4202777db86afa7cbffdf3\",\"file_name\":\"win08_x64_std-ver2.1.img\",\"id\":20,\"virtualization\":\"xen\",\"allowed_hot_migrate\":true,\"template_size\":12796572,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":20,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Windows 2008 Standard Edition x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"2008\",\"operating_system\":\"windows\",\"operating_system_tail\":null,\"allowed_swap\":false,\"operating_system_edition\":\"STD\",\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"af1efbe84379a618a3679d42c0454a23\",\"file_name\":\"win08_x86_std-ver2.1.img\",\"id\":21,\"virtualization\":\"xen\",\"allowed_hot_migrate\":true,\"template_size\":8447664,\"user_id\":null,\"version\":\"2.1\",\"min_disk_size\":20,\"state\":\"active\"}},{\"image_template\":{\"label\":\"Ubuntu 10.10 x86\",\"created_at\":\"2011-04-13T10:37:49Z\",\"operating_system_arch\":\"x86\",\"operating_system_distro\":\"ubuntu\",\"operating_system\":\"linux\",\"operating_system_tail\":null,\"allowed_swap\":true,\"operating_system_edition\":null,\"updated_at\":null,\"allow_resize_without_reboot\":null,\"checksum\":\"1bd57466a6a852b889afbc37023a17fa\",\"file_name\":\"ubuntu-10.10-x86-1.0.tar.gz\",\"id\":22,\"virtualization\":\"xen,kvm\",\"allowed_hot_migrate\":null,\"template_size\":210128,\"user_id\":null,\"version\":\"1.0\",\"min_disk_size\":5,\"state\":\"active\"}}]"
40
- http_version: "1.1"