squall 0.0.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. data/.gitignore +10 -0
  2. data/.rspec +2 -0
  3. data/.rvmrc +1 -0
  4. data/.travis.yml +7 -0
  5. data/Gemfile +3 -0
  6. data/Gemfile.lock +100 -0
  7. data/LICENSE +1 -1
  8. data/README.md +69 -0
  9. data/Rakefile +48 -42
  10. data/lib/squall/base.rb +96 -0
  11. data/lib/squall/config.rb +26 -0
  12. data/lib/squall/exception.rb +13 -0
  13. data/lib/squall/hypervisor.rb +46 -16
  14. data/lib/squall/ip_address.rb +13 -0
  15. data/lib/squall/network.rb +42 -0
  16. data/lib/squall/params.rb +50 -0
  17. data/lib/squall/role.rb +56 -0
  18. data/lib/squall/statistic.rb +10 -0
  19. data/lib/squall/template.rb +22 -0
  20. data/lib/squall/transaction.rb +16 -0
  21. data/lib/squall/user.rb +87 -0
  22. data/lib/squall/version.rb +3 -0
  23. data/lib/squall/virtual_machine.rb +169 -41
  24. data/lib/squall.rb +76 -20
  25. data/spec/params_spec.rb +195 -0
  26. data/spec/spec_helper.rb +47 -0
  27. data/spec/squall/base_spec.rb +135 -0
  28. data/spec/squall/config_spec.rb +44 -0
  29. data/spec/squall/hypervisor_spec.rb +143 -0
  30. data/spec/squall/ip_address_spec.rb +32 -0
  31. data/spec/squall/network_spec.rb +121 -0
  32. data/spec/squall/role_spec.rb +123 -0
  33. data/spec/squall/statistic_spec.rb +23 -0
  34. data/spec/squall/template_spec.rb +59 -0
  35. data/spec/squall/transaction_spec.rb +42 -0
  36. data/spec/squall/user_spec.rb +195 -0
  37. data/spec/squall/virtual_machine_spec.rb +471 -0
  38. data/spec/squall_spec.rb +67 -0
  39. data/spec/vcr_cassettes/hypervisor/create.yml +77 -0
  40. data/spec/vcr_cassettes/hypervisor/delete.yml +77 -0
  41. data/spec/vcr_cassettes/hypervisor/edit.yml +79 -0
  42. data/spec/vcr_cassettes/hypervisor/list.yml +40 -0
  43. data/spec/vcr_cassettes/hypervisor/reboot.yml +77 -0
  44. data/spec/vcr_cassettes/hypervisor/show.yml +77 -0
  45. data/spec/vcr_cassettes/ipaddress/list.yml +77 -0
  46. data/spec/vcr_cassettes/network/create.yml +196 -0
  47. data/spec/vcr_cassettes/network/delete.yml +77 -0
  48. data/spec/vcr_cassettes/network/edit.yml +233 -0
  49. data/spec/vcr_cassettes/network/list.yml +40 -0
  50. data/spec/vcr_cassettes/role/create.yml +77 -0
  51. data/spec/vcr_cassettes/role/delete.yml +77 -0
  52. data/spec/vcr_cassettes/role/edit.yml +139 -0
  53. data/spec/vcr_cassettes/role/list.yml +40 -0
  54. data/spec/vcr_cassettes/role/permissions.yml +40 -0
  55. data/spec/vcr_cassettes/role/show.yml +77 -0
  56. data/spec/vcr_cassettes/statistic/usage_statistics.yml +40 -0
  57. data/spec/vcr_cassettes/template/download.yml +40 -0
  58. data/spec/vcr_cassettes/template/list.yml +40 -0
  59. data/spec/vcr_cassettes/template/make_public.yml +77 -0
  60. data/spec/vcr_cassettes/transaction/list.yml +40 -0
  61. data/spec/vcr_cassettes/transaction/show.yml +77 -0
  62. data/spec/vcr_cassettes/user/activate.yml +40 -0
  63. data/spec/vcr_cassettes/user/create.yml +116 -0
  64. data/spec/vcr_cassettes/user/delete.yml +77 -0
  65. data/spec/vcr_cassettes/user/edit_role.yml +116 -0
  66. data/spec/vcr_cassettes/user/generate_api_key.yml +40 -0
  67. data/spec/vcr_cassettes/user/list.yml +40 -0
  68. data/spec/vcr_cassettes/user/show.yml +77 -0
  69. data/spec/vcr_cassettes/user/stats.yml +40 -0
  70. data/spec/vcr_cassettes/user/suspend.yml +40 -0
  71. data/spec/vcr_cassettes/user/virtual_machines.yml +79 -0
  72. data/spec/vcr_cassettes/virtual_machine/build.yml +77 -0
  73. data/spec/vcr_cassettes/virtual_machine/change_owner.yml +108 -0
  74. data/spec/vcr_cassettes/virtual_machine/change_password.yml +77 -0
  75. data/spec/vcr_cassettes/virtual_machine/create.yml +40 -0
  76. data/spec/vcr_cassettes/virtual_machine/delete.yml +77 -0
  77. data/spec/vcr_cassettes/virtual_machine/edit.yml +77 -0
  78. data/spec/vcr_cassettes/virtual_machine/list.yml +40 -0
  79. data/spec/vcr_cassettes/virtual_machine/migrate.yml +116 -0
  80. data/spec/vcr_cassettes/virtual_machine/reboot.yml +77 -0
  81. data/spec/vcr_cassettes/virtual_machine/resize.yml +77 -0
  82. data/spec/vcr_cassettes/virtual_machine/show.yml +77 -0
  83. data/spec/vcr_cassettes/virtual_machine/shutdown.yml +77 -0
  84. data/spec/vcr_cassettes/virtual_machine/startup.yml +77 -0
  85. data/spec/vcr_cassettes/virtual_machine/stop.yml +77 -0
  86. data/spec/vcr_cassettes/virtual_machine/suspend.yml +77 -0
  87. data/spec/vcr_cassettes/virtual_machine/unlock.yml +77 -0
  88. data/spec/vcr_cassettes/virtual_machine/unsuspend.yml +77 -0
  89. data/squall.gemspec +25 -62
  90. metadata +224 -42
  91. data/.document +0 -5
  92. data/README.rdoc +0 -17
  93. data/VERSION.yml +0 -5
  94. data/lib/squall/client.rb +0 -87
  95. data/test/fixtures/virtual_machines.json +0 -1
  96. data/test/fixtures/virtual_machines_1.json +0 -1
  97. data/test/helper.rb +0 -31
  98. data/test/test_client.rb +0 -152
  99. data/test/test_squall.rb +0 -12
  100. data/test/test_virtual_machine.rb +0 -98
@@ -0,0 +1,77 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://user:pass@www.example.com:80/virtual_machines/404/unlock.json
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: 404
15
+ message: Not Found
16
+ headers:
17
+ x-ua-compatible:
18
+ - IE=Edge,chrome=1
19
+ x-powered-by:
20
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.1
21
+ content-type:
22
+ - application/json; charset=utf-8
23
+ date:
24
+ - Fri, 29 Apr 2011 19:00:31 GMT
25
+ server:
26
+ - Apache/2.2.3 (CentOS)
27
+ x-runtime:
28
+ - "0.008599"
29
+ set-cookie:
30
+ - _onapp_session=WHAT; path=/; HttpOnly
31
+ cache-control:
32
+ - no-cache
33
+ status:
34
+ - "404"
35
+ transfer-encoding:
36
+ - chunked
37
+ body: "{\"error\":\"Resource not found\"}"
38
+ http_version: "1.1"
39
+ - !ruby/struct:VCR::HTTPInteraction
40
+ request: !ruby/struct:VCR::Request
41
+ method: :post
42
+ uri: http://user:pass@www.example.com:80/virtual_machines/1/unlock.json
43
+ body:
44
+ headers:
45
+ content-type:
46
+ - application/json
47
+ authorization:
48
+ - Basic WHAT
49
+ response: !ruby/struct:VCR::Response
50
+ status: !ruby/struct:VCR::ResponseStatus
51
+ code: 201
52
+ message: Created
53
+ headers:
54
+ x-ua-compatible:
55
+ - IE=Edge,chrome=1
56
+ location:
57
+ - http://www.example.com/virtual_machines/7z2gzavnrhmmt3
58
+ x-powered-by:
59
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.1
60
+ content-type:
61
+ - application/json; charset=utf-8
62
+ x-runtime:
63
+ - "0.013756"
64
+ server:
65
+ - Apache/2.2.3 (CentOS)
66
+ date:
67
+ - Fri, 29 Apr 2011 19:00:31 GMT
68
+ set-cookie:
69
+ - _onapp_session=WHAT; path=/; HttpOnly
70
+ status:
71
+ - "201"
72
+ cache-control:
73
+ - no-cache
74
+ transfer-encoding:
75
+ - chunked
76
+ body: "{\"virtual_machine\":{\"monthly_bandwidth_used\":0,\"cpus\":1,\"label\":\"testing\",\"created_at\":\"2011-04-19T18:30:33Z\",\"operating_system_distro\":null,\"cpu_shares\":10,\"operating_system\":null,\"template_id\":null,\"allowed_swap\":true,\"local_remote_access_port\":null,\"memory\":100,\"updated_at\":\"2011-04-29T18:53:09Z\",\"allow_resize_without_reboot\":null,\"recovery_mode\":null,\"hypervisor_id\":1,\"id\":1,\"xen_id\":null,\"user_note\":null,\"allowed_hot_migrate\":null,\"user_id\":2,\"note\":null,\"strict_virtual_machine_id\":null,\"suspended\":true,\"total_disk_size\":0,\"booted\":false,\"hostname\":\"bob\",\"template_label\":null,\"identifier\":\"7z2gzavnrhmmt3\",\"initial_root_password\":\"ip8pwfqj60y6\",\"min_disk_size\":null,\"remote_access_password\":null,\"built\":false,\"locked\":false,\"ip_addresses\":[]}}"
77
+ http_version: "1.1"
@@ -0,0 +1,77 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://user:pass@www.example.com:80/virtual_machines/404/suspend.json
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: 404
15
+ message: Not Found
16
+ headers:
17
+ x-ua-compatible:
18
+ - IE=Edge,chrome=1
19
+ x-powered-by:
20
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.1
21
+ content-type:
22
+ - application/json; charset=utf-8
23
+ date:
24
+ - Fri, 29 Apr 2011 19:19:26 GMT
25
+ server:
26
+ - Apache/2.2.3 (CentOS)
27
+ x-runtime:
28
+ - "0.029671"
29
+ set-cookie:
30
+ - _onapp_session=WHAT; path=/; HttpOnly
31
+ cache-control:
32
+ - no-cache
33
+ status:
34
+ - "404"
35
+ transfer-encoding:
36
+ - chunked
37
+ body: "{\"error\":\"Resource not found\"}"
38
+ http_version: "1.1"
39
+ - !ruby/struct:VCR::HTTPInteraction
40
+ request: !ruby/struct:VCR::Request
41
+ method: :post
42
+ uri: http://user:pass@www.example.com:80/virtual_machines/1/suspend.json
43
+ body:
44
+ headers:
45
+ content-type:
46
+ - application/json
47
+ authorization:
48
+ - Basic WHAT
49
+ response: !ruby/struct:VCR::Response
50
+ status: !ruby/struct:VCR::ResponseStatus
51
+ code: 201
52
+ message: Created
53
+ headers:
54
+ x-ua-compatible:
55
+ - IE=Edge,chrome=1
56
+ location:
57
+ - http://www.example.com/virtual_machines/7z2gzavnrhmmt3
58
+ x-powered-by:
59
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.1
60
+ content-type:
61
+ - application/json; charset=utf-8
62
+ x-runtime:
63
+ - "0.018702"
64
+ server:
65
+ - Apache/2.2.3 (CentOS)
66
+ date:
67
+ - Fri, 29 Apr 2011 19:19:26 GMT
68
+ set-cookie:
69
+ - _onapp_session=WHAT; path=/; HttpOnly
70
+ status:
71
+ - "201"
72
+ cache-control:
73
+ - no-cache
74
+ transfer-encoding:
75
+ - chunked
76
+ body: "{\"virtual_machine\":{\"monthly_bandwidth_used\":0,\"cpus\":1,\"label\":\"testing\",\"created_at\":\"2011-04-19T18:30:33Z\",\"operating_system_distro\":null,\"cpu_shares\":10,\"operating_system\":null,\"template_id\":null,\"allowed_swap\":true,\"local_remote_access_port\":null,\"memory\":100,\"updated_at\":\"2011-04-29T19:19:26Z\",\"allow_resize_without_reboot\":null,\"recovery_mode\":null,\"hypervisor_id\":1,\"id\":1,\"xen_id\":null,\"user_note\":null,\"allowed_hot_migrate\":null,\"user_id\":2,\"note\":null,\"strict_virtual_machine_id\":null,\"suspended\":false,\"total_disk_size\":0,\"booted\":false,\"hostname\":\"bob\",\"template_label\":null,\"identifier\":\"7z2gzavnrhmmt3\",\"initial_root_password\":\"ip8pwfqj60y6\",\"min_disk_size\":null,\"remote_access_password\":null,\"built\":false,\"locked\":false,\"ip_addresses\":[]}}"
77
+ http_version: "1.1"
data/squall.gemspec CHANGED
@@ -1,70 +1,33 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "squall/version"
5
4
 
6
5
  Gem::Specification.new do |s|
7
- s.name = %q{squall}
8
- s.version = "0.0.3"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Justin Mazzi"]
12
- s.date = %q{2010-11-17}
6
+ s.name = "squall"
7
+ s.version = Squall::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Justin Mazzi"]
10
+ s.email = ["jmazzi@site5.com"]
11
+ s.homepage = ""
12
+ s.summary = %q{A Ruby library for working with the OnApp REST API}
13
13
  s.description = %q{A Ruby library for working with the OnApp REST API}
14
- s.email = %q{jmazzi@site5.com}
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.rdoc"
18
- ]
19
- s.files = [
20
- ".document",
21
- "LICENSE",
22
- "README.rdoc",
23
- "Rakefile",
24
- "VERSION.yml",
25
- "lib/squall.rb",
26
- "lib/squall/client.rb",
27
- "lib/squall/hypervisor.rb",
28
- "lib/squall/virtual_machine.rb",
29
- "squall.gemspec",
30
- "test/fixtures/virtual_machines.json",
31
- "test/fixtures/virtual_machines_1.json",
32
- "test/helper.rb",
33
- "test/test_client.rb",
34
- "test/test_squall.rb",
35
- "test/test_virtual_machine.rb"
36
- ]
37
- s.homepage = %q{http://www.site5.com}
38
- s.require_paths = ["lib"]
39
- s.rubygems_version = %q{1.3.7}
40
- s.summary = %q{A Ruby library for working with the OnApp REST API}
41
- s.test_files = [
42
- "test/helper.rb",
43
- "test/test_client.rb",
44
- "test/test_squall.rb",
45
- "test/test_virtual_machine.rb"
46
- ]
47
14
 
48
- if s.respond_to? :specification_version then
49
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
50
- s.specification_version = 3
15
+ s.rubyforge_project = "squall"
16
+
17
+ s.add_runtime_dependency 'httparty', '~> 0.7.4'
18
+ s.add_runtime_dependency('jruby-openssl', '~> 0.7.3') if RUBY_PLATFORM == 'java'
51
19
 
52
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
53
- s.add_runtime_dependency(%q<rest-client>, [">= 0"])
54
- s.add_runtime_dependency(%q<json>, [">= 0"])
55
- s.add_development_dependency(%q<fakeweb>, [">= 0"])
56
- s.add_development_dependency(%q<redgreen>, [">= 0"])
57
- else
58
- s.add_dependency(%q<rest-client>, [">= 0"])
59
- s.add_dependency(%q<json>, [">= 0"])
60
- s.add_dependency(%q<fakeweb>, [">= 0"])
61
- s.add_dependency(%q<redgreen>, [">= 0"])
62
- end
63
- else
64
- s.add_dependency(%q<rest-client>, [">= 0"])
65
- s.add_dependency(%q<json>, [">= 0"])
66
- s.add_dependency(%q<fakeweb>, [">= 0"])
67
- s.add_dependency(%q<redgreen>, [">= 0"])
20
+ s.add_development_dependency 'rspec', '~> 2.5'
21
+ s.add_development_dependency 'fakeweb', '~> 1.3'
22
+ s.add_development_dependency 'vcr', '~> 1.8'
23
+ s.add_development_dependency 'awesome_print'
24
+ if !defined?(RUBY_ENGINE) || RUBY_ENGINE != 'rbx'
25
+ s.add_development_dependency 'rcov', '~> 0.9'
26
+ s.add_development_dependency 'metric_fu', '~> 2.1'
68
27
  end
69
- end
70
28
 
29
+ s.files = `git ls-files`.split("\n")
30
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
31
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
32
+ s.require_paths = ["lib"]
33
+ 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: 25
5
- prerelease: false
4
+ hash: 23
5
+ prerelease:
6
6
  segments:
7
+ - 1
7
8
  - 0
8
9
  - 0
9
- - 3
10
- version: 0.0.3
10
+ version: 1.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Mazzi
@@ -15,36 +15,39 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-17 00:00:00 -05:00
18
+ date: 2011-05-06 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: rest-client
22
+ name: httparty
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ">="
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
- hash: 3
29
+ hash: 11
30
30
  segments:
31
31
  - 0
32
- version: "0"
32
+ - 7
33
+ - 4
34
+ version: 0.7.4
33
35
  type: :runtime
34
36
  version_requirements: *id001
35
37
  - !ruby/object:Gem::Dependency
36
- name: json
38
+ name: rspec
37
39
  prerelease: false
38
40
  requirement: &id002 !ruby/object:Gem::Requirement
39
41
  none: false
40
42
  requirements:
41
- - - ">="
43
+ - - ~>
42
44
  - !ruby/object:Gem::Version
43
- hash: 3
45
+ hash: 9
44
46
  segments:
45
- - 0
46
- version: "0"
47
- type: :runtime
47
+ - 2
48
+ - 5
49
+ version: "2.5"
50
+ type: :development
48
51
  version_requirements: *id002
49
52
  - !ruby/object:Gem::Dependency
50
53
  name: fakeweb
@@ -52,18 +55,34 @@ dependencies:
52
55
  requirement: &id003 !ruby/object:Gem::Requirement
53
56
  none: false
54
57
  requirements:
55
- - - ">="
58
+ - - ~>
56
59
  - !ruby/object:Gem::Version
57
- hash: 3
60
+ hash: 9
58
61
  segments:
59
- - 0
60
- version: "0"
62
+ - 1
63
+ - 3
64
+ version: "1.3"
61
65
  type: :development
62
66
  version_requirements: *id003
63
67
  - !ruby/object:Gem::Dependency
64
- name: redgreen
68
+ name: vcr
65
69
  prerelease: false
66
70
  requirement: &id004 !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ hash: 31
76
+ segments:
77
+ - 1
78
+ - 8
79
+ version: "1.8"
80
+ type: :development
81
+ version_requirements: *id004
82
+ - !ruby/object:Gem::Dependency
83
+ name: awesome_print
84
+ prerelease: false
85
+ requirement: &id005 !ruby/object:Gem::Requirement
67
86
  none: false
68
87
  requirements:
69
88
  - - ">="
@@ -73,35 +92,138 @@ dependencies:
73
92
  - 0
74
93
  version: "0"
75
94
  type: :development
76
- version_requirements: *id004
95
+ version_requirements: *id005
96
+ - !ruby/object:Gem::Dependency
97
+ name: rcov
98
+ prerelease: false
99
+ requirement: &id006 !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ~>
103
+ - !ruby/object:Gem::Version
104
+ hash: 25
105
+ segments:
106
+ - 0
107
+ - 9
108
+ version: "0.9"
109
+ type: :development
110
+ version_requirements: *id006
111
+ - !ruby/object:Gem::Dependency
112
+ name: metric_fu
113
+ prerelease: false
114
+ requirement: &id007 !ruby/object:Gem::Requirement
115
+ none: false
116
+ requirements:
117
+ - - ~>
118
+ - !ruby/object:Gem::Version
119
+ hash: 1
120
+ segments:
121
+ - 2
122
+ - 1
123
+ version: "2.1"
124
+ type: :development
125
+ version_requirements: *id007
77
126
  description: A Ruby library for working with the OnApp REST API
78
- email: jmazzi@site5.com
127
+ email:
128
+ - jmazzi@site5.com
79
129
  executables: []
80
130
 
81
131
  extensions: []
82
132
 
83
- extra_rdoc_files:
84
- - LICENSE
85
- - README.rdoc
133
+ extra_rdoc_files: []
134
+
86
135
  files:
87
- - .document
136
+ - .gitignore
137
+ - .rspec
138
+ - .rvmrc
139
+ - .travis.yml
140
+ - Gemfile
141
+ - Gemfile.lock
88
142
  - LICENSE
89
- - README.rdoc
143
+ - README.md
90
144
  - Rakefile
91
- - VERSION.yml
92
145
  - lib/squall.rb
93
- - lib/squall/client.rb
146
+ - lib/squall/base.rb
147
+ - lib/squall/config.rb
148
+ - lib/squall/exception.rb
94
149
  - lib/squall/hypervisor.rb
150
+ - lib/squall/ip_address.rb
151
+ - lib/squall/network.rb
152
+ - lib/squall/params.rb
153
+ - lib/squall/role.rb
154
+ - lib/squall/statistic.rb
155
+ - lib/squall/template.rb
156
+ - lib/squall/transaction.rb
157
+ - lib/squall/user.rb
158
+ - lib/squall/version.rb
95
159
  - lib/squall/virtual_machine.rb
160
+ - spec/params_spec.rb
161
+ - spec/spec_helper.rb
162
+ - spec/squall/base_spec.rb
163
+ - spec/squall/config_spec.rb
164
+ - spec/squall/hypervisor_spec.rb
165
+ - spec/squall/ip_address_spec.rb
166
+ - spec/squall/network_spec.rb
167
+ - spec/squall/role_spec.rb
168
+ - spec/squall/statistic_spec.rb
169
+ - spec/squall/template_spec.rb
170
+ - spec/squall/transaction_spec.rb
171
+ - spec/squall/user_spec.rb
172
+ - spec/squall/virtual_machine_spec.rb
173
+ - spec/squall_spec.rb
174
+ - spec/vcr_cassettes/hypervisor/create.yml
175
+ - spec/vcr_cassettes/hypervisor/delete.yml
176
+ - spec/vcr_cassettes/hypervisor/edit.yml
177
+ - spec/vcr_cassettes/hypervisor/list.yml
178
+ - spec/vcr_cassettes/hypervisor/reboot.yml
179
+ - spec/vcr_cassettes/hypervisor/show.yml
180
+ - spec/vcr_cassettes/ipaddress/list.yml
181
+ - spec/vcr_cassettes/network/create.yml
182
+ - spec/vcr_cassettes/network/delete.yml
183
+ - spec/vcr_cassettes/network/edit.yml
184
+ - spec/vcr_cassettes/network/list.yml
185
+ - spec/vcr_cassettes/role/create.yml
186
+ - spec/vcr_cassettes/role/delete.yml
187
+ - spec/vcr_cassettes/role/edit.yml
188
+ - spec/vcr_cassettes/role/list.yml
189
+ - spec/vcr_cassettes/role/permissions.yml
190
+ - spec/vcr_cassettes/role/show.yml
191
+ - spec/vcr_cassettes/statistic/usage_statistics.yml
192
+ - spec/vcr_cassettes/template/download.yml
193
+ - spec/vcr_cassettes/template/list.yml
194
+ - spec/vcr_cassettes/template/make_public.yml
195
+ - spec/vcr_cassettes/transaction/list.yml
196
+ - spec/vcr_cassettes/transaction/show.yml
197
+ - spec/vcr_cassettes/user/activate.yml
198
+ - spec/vcr_cassettes/user/create.yml
199
+ - spec/vcr_cassettes/user/delete.yml
200
+ - spec/vcr_cassettes/user/edit_role.yml
201
+ - spec/vcr_cassettes/user/generate_api_key.yml
202
+ - spec/vcr_cassettes/user/list.yml
203
+ - spec/vcr_cassettes/user/show.yml
204
+ - spec/vcr_cassettes/user/stats.yml
205
+ - spec/vcr_cassettes/user/suspend.yml
206
+ - spec/vcr_cassettes/user/virtual_machines.yml
207
+ - spec/vcr_cassettes/virtual_machine/build.yml
208
+ - spec/vcr_cassettes/virtual_machine/change_owner.yml
209
+ - spec/vcr_cassettes/virtual_machine/change_password.yml
210
+ - spec/vcr_cassettes/virtual_machine/create.yml
211
+ - spec/vcr_cassettes/virtual_machine/delete.yml
212
+ - spec/vcr_cassettes/virtual_machine/edit.yml
213
+ - spec/vcr_cassettes/virtual_machine/list.yml
214
+ - spec/vcr_cassettes/virtual_machine/migrate.yml
215
+ - spec/vcr_cassettes/virtual_machine/reboot.yml
216
+ - spec/vcr_cassettes/virtual_machine/resize.yml
217
+ - spec/vcr_cassettes/virtual_machine/show.yml
218
+ - spec/vcr_cassettes/virtual_machine/shutdown.yml
219
+ - spec/vcr_cassettes/virtual_machine/startup.yml
220
+ - spec/vcr_cassettes/virtual_machine/stop.yml
221
+ - spec/vcr_cassettes/virtual_machine/suspend.yml
222
+ - spec/vcr_cassettes/virtual_machine/unlock.yml
223
+ - spec/vcr_cassettes/virtual_machine/unsuspend.yml
96
224
  - squall.gemspec
97
- - test/fixtures/virtual_machines.json
98
- - test/fixtures/virtual_machines_1.json
99
- - test/helper.rb
100
- - test/test_client.rb
101
- - test/test_squall.rb
102
- - test/test_virtual_machine.rb
103
225
  has_rdoc: true
104
- homepage: http://www.site5.com
226
+ homepage: ""
105
227
  licenses: []
106
228
 
107
229
  post_install_message:
@@ -129,13 +251,73 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
251
  version: "0"
130
252
  requirements: []
131
253
 
132
- rubyforge_project:
133
- rubygems_version: 1.3.7
254
+ rubyforge_project: squall
255
+ rubygems_version: 1.6.2
134
256
  signing_key:
135
257
  specification_version: 3
136
258
  summary: A Ruby library for working with the OnApp REST API
137
259
  test_files:
138
- - test/helper.rb
139
- - test/test_client.rb
140
- - test/test_squall.rb
141
- - test/test_virtual_machine.rb
260
+ - spec/params_spec.rb
261
+ - spec/spec_helper.rb
262
+ - spec/squall/base_spec.rb
263
+ - spec/squall/config_spec.rb
264
+ - spec/squall/hypervisor_spec.rb
265
+ - spec/squall/ip_address_spec.rb
266
+ - spec/squall/network_spec.rb
267
+ - spec/squall/role_spec.rb
268
+ - spec/squall/statistic_spec.rb
269
+ - spec/squall/template_spec.rb
270
+ - spec/squall/transaction_spec.rb
271
+ - spec/squall/user_spec.rb
272
+ - spec/squall/virtual_machine_spec.rb
273
+ - spec/squall_spec.rb
274
+ - spec/vcr_cassettes/hypervisor/create.yml
275
+ - spec/vcr_cassettes/hypervisor/delete.yml
276
+ - spec/vcr_cassettes/hypervisor/edit.yml
277
+ - spec/vcr_cassettes/hypervisor/list.yml
278
+ - spec/vcr_cassettes/hypervisor/reboot.yml
279
+ - spec/vcr_cassettes/hypervisor/show.yml
280
+ - spec/vcr_cassettes/ipaddress/list.yml
281
+ - spec/vcr_cassettes/network/create.yml
282
+ - spec/vcr_cassettes/network/delete.yml
283
+ - spec/vcr_cassettes/network/edit.yml
284
+ - spec/vcr_cassettes/network/list.yml
285
+ - spec/vcr_cassettes/role/create.yml
286
+ - spec/vcr_cassettes/role/delete.yml
287
+ - spec/vcr_cassettes/role/edit.yml
288
+ - spec/vcr_cassettes/role/list.yml
289
+ - spec/vcr_cassettes/role/permissions.yml
290
+ - spec/vcr_cassettes/role/show.yml
291
+ - spec/vcr_cassettes/statistic/usage_statistics.yml
292
+ - spec/vcr_cassettes/template/download.yml
293
+ - spec/vcr_cassettes/template/list.yml
294
+ - spec/vcr_cassettes/template/make_public.yml
295
+ - spec/vcr_cassettes/transaction/list.yml
296
+ - spec/vcr_cassettes/transaction/show.yml
297
+ - spec/vcr_cassettes/user/activate.yml
298
+ - spec/vcr_cassettes/user/create.yml
299
+ - spec/vcr_cassettes/user/delete.yml
300
+ - spec/vcr_cassettes/user/edit_role.yml
301
+ - spec/vcr_cassettes/user/generate_api_key.yml
302
+ - spec/vcr_cassettes/user/list.yml
303
+ - spec/vcr_cassettes/user/show.yml
304
+ - spec/vcr_cassettes/user/stats.yml
305
+ - spec/vcr_cassettes/user/suspend.yml
306
+ - spec/vcr_cassettes/user/virtual_machines.yml
307
+ - spec/vcr_cassettes/virtual_machine/build.yml
308
+ - spec/vcr_cassettes/virtual_machine/change_owner.yml
309
+ - spec/vcr_cassettes/virtual_machine/change_password.yml
310
+ - spec/vcr_cassettes/virtual_machine/create.yml
311
+ - spec/vcr_cassettes/virtual_machine/delete.yml
312
+ - spec/vcr_cassettes/virtual_machine/edit.yml
313
+ - spec/vcr_cassettes/virtual_machine/list.yml
314
+ - spec/vcr_cassettes/virtual_machine/migrate.yml
315
+ - spec/vcr_cassettes/virtual_machine/reboot.yml
316
+ - spec/vcr_cassettes/virtual_machine/resize.yml
317
+ - spec/vcr_cassettes/virtual_machine/show.yml
318
+ - spec/vcr_cassettes/virtual_machine/shutdown.yml
319
+ - spec/vcr_cassettes/virtual_machine/startup.yml
320
+ - spec/vcr_cassettes/virtual_machine/stop.yml
321
+ - spec/vcr_cassettes/virtual_machine/suspend.yml
322
+ - spec/vcr_cassettes/virtual_machine/unlock.yml
323
+ - spec/vcr_cassettes/virtual_machine/unsuspend.yml
data/.document DELETED
@@ -1,5 +0,0 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE
data/README.rdoc DELETED
@@ -1,17 +0,0 @@
1
- = squall
2
-
3
- Description goes here.
4
-
5
- == Note on Patches/Pull Requests
6
-
7
- * Fork the project.
8
- * Make your feature addition or bug fix.
9
- * Add tests for it. This is important so I don't break it in a
10
- future version unintentionally.
11
- * Commit, do not mess with rakefile, version, or history.
12
- (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
13
- * Send me a pull request. Bonus points for topic branches.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2010 Justin Mazzi. See LICENSE for details.
data/VERSION.yml DELETED
@@ -1,5 +0,0 @@
1
- ---
2
- :patch: 3
3
- :build:
4
- :major: 0
5
- :minor: 0