fog-openstack 0.1.25 → 0.1.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +3 -1
  3. data/.travis.yml +4 -4
  4. data/.zuul.yaml +35 -0
  5. data/README.md +3 -3
  6. data/Rakefile +6 -9
  7. data/docs/planning.md +3 -3
  8. data/docs/storage.md +1 -1
  9. data/examples/planning/basics.rb +1 -1
  10. data/fog-openstack.gemspec +3 -3
  11. data/lib/fog/baremetal/openstack/requests/create_chassis.rb +4 -4
  12. data/lib/fog/baremetal/openstack/requests/create_node.rb +4 -4
  13. data/lib/fog/baremetal/openstack/requests/create_port.rb +4 -4
  14. data/lib/fog/baremetal/openstack/requests/get_chassis.rb +6 -6
  15. data/lib/fog/baremetal/openstack/requests/get_driver.rb +6 -6
  16. data/lib/fog/baremetal/openstack/requests/get_driver_properties.rb +6 -6
  17. data/lib/fog/baremetal/openstack/requests/get_node.rb +6 -6
  18. data/lib/fog/baremetal/openstack/requests/get_port.rb +6 -6
  19. data/lib/fog/baremetal/openstack/requests/list_chassis.rb +6 -6
  20. data/lib/fog/baremetal/openstack/requests/list_chassis_detailed.rb +6 -6
  21. data/lib/fog/baremetal/openstack/requests/list_drivers.rb +6 -6
  22. data/lib/fog/baremetal/openstack/requests/list_nodes.rb +6 -6
  23. data/lib/fog/baremetal/openstack/requests/list_nodes_detailed.rb +6 -6
  24. data/lib/fog/baremetal/openstack/requests/list_ports.rb +6 -6
  25. data/lib/fog/baremetal/openstack/requests/list_ports_detailed.rb +6 -6
  26. data/lib/fog/baremetal/openstack/requests/patch_chassis.rb +4 -4
  27. data/lib/fog/baremetal/openstack/requests/patch_node.rb +4 -4
  28. data/lib/fog/baremetal/openstack/requests/patch_port.rb +4 -4
  29. data/lib/fog/baremetal/openstack/requests/set_node_maintenance.rb +4 -4
  30. data/lib/fog/baremetal/openstack/requests/set_node_power_state.rb +4 -4
  31. data/lib/fog/baremetal/openstack/requests/set_node_provision_state.rb +4 -4
  32. data/lib/fog/baremetal/openstack/requests/unset_node_maintenance.rb +4 -4
  33. data/lib/fog/compute/openstack/models/network.rb +4 -4
  34. data/lib/fog/compute/openstack/models/networks.rb +4 -4
  35. data/lib/fog/compute/openstack/models/server.rb +1 -1
  36. data/lib/fog/compute/openstack/models/server_group.rb +4 -4
  37. data/lib/fog/compute/openstack/models/server_groups.rb +4 -4
  38. data/lib/fog/compute/openstack/models/tenant.rb +4 -4
  39. data/lib/fog/compute/openstack/models/tenants.rb +4 -4
  40. data/lib/fog/compute/openstack/requests/add_aggregate_host.rb +4 -4
  41. data/lib/fog/compute/openstack/requests/add_fixed_ip.rb +7 -7
  42. data/lib/fog/compute/openstack/requests/allocate_address.rb +3 -3
  43. data/lib/fog/compute/openstack/requests/boot_from_snapshot.rb +3 -3
  44. data/lib/fog/compute/openstack/requests/create_aggregate.rb +4 -4
  45. data/lib/fog/compute/openstack/requests/create_flavor.rb +4 -4
  46. data/lib/fog/compute/openstack/requests/create_flavor_metadata.rb +4 -4
  47. data/lib/fog/compute/openstack/requests/create_key_pair.rb +4 -4
  48. data/lib/fog/compute/openstack/requests/create_security_group.rb +4 -4
  49. data/lib/fog/compute/openstack/requests/create_security_group_rule.rb +4 -4
  50. data/lib/fog/compute/openstack/requests/delete_aggregate.rb +4 -4
  51. data/lib/fog/compute/openstack/requests/delete_flavor.rb +4 -4
  52. data/lib/fog/compute/openstack/requests/delete_key_pair.rb +4 -4
  53. data/lib/fog/compute/openstack/requests/delete_security_group.rb +4 -4
  54. data/lib/fog/compute/openstack/requests/delete_security_group_rule.rb +4 -4
  55. data/lib/fog/compute/openstack/requests/delete_service.rb +4 -4
  56. data/lib/fog/compute/openstack/requests/disable_service.rb +4 -4
  57. data/lib/fog/compute/openstack/requests/disable_service_log_reason.rb +4 -4
  58. data/lib/fog/compute/openstack/requests/enable_service.rb +4 -4
  59. data/lib/fog/compute/openstack/requests/get_address.rb +4 -4
  60. data/lib/fog/compute/openstack/requests/get_aggregate.rb +4 -4
  61. data/lib/fog/compute/openstack/requests/get_flavor_metadata.rb +4 -4
  62. data/lib/fog/compute/openstack/requests/get_host_details.rb +4 -4
  63. data/lib/fog/compute/openstack/requests/get_security_group.rb +4 -4
  64. data/lib/fog/compute/openstack/requests/get_security_group_rule.rb +4 -4
  65. data/lib/fog/compute/openstack/requests/get_server_volumes.rb +1 -1
  66. data/lib/fog/compute/openstack/requests/get_vnc_console.rb +7 -7
  67. data/lib/fog/compute/openstack/requests/list_aggregates.rb +4 -4
  68. data/lib/fog/compute/openstack/requests/list_all_addresses.rb +4 -4
  69. data/lib/fog/compute/openstack/requests/list_hosts.rb +4 -4
  70. data/lib/fog/compute/openstack/requests/list_key_pairs.rb +4 -4
  71. data/lib/fog/compute/openstack/requests/list_security_groups.rb +4 -4
  72. data/lib/fog/compute/openstack/requests/list_services.rb +4 -4
  73. data/lib/fog/compute/openstack/requests/list_tenants.rb +4 -4
  74. data/lib/fog/compute/openstack/requests/pause_server.rb +7 -7
  75. data/lib/fog/compute/openstack/requests/release_address.rb +1 -1
  76. data/lib/fog/compute/openstack/requests/remove_aggregate_host.rb +4 -4
  77. data/lib/fog/compute/openstack/requests/remove_fixed_ip.rb +7 -7
  78. data/lib/fog/compute/openstack/requests/rescue_server.rb +7 -7
  79. data/lib/fog/compute/openstack/requests/resume_server.rb +7 -7
  80. data/lib/fog/compute/openstack/requests/server_actions.rb +7 -7
  81. data/lib/fog/compute/openstack/requests/server_diagnostics.rb +7 -7
  82. data/lib/fog/compute/openstack/requests/set_tenant.rb +3 -3
  83. data/lib/fog/compute/openstack/requests/shelve_offload_server.rb +7 -7
  84. data/lib/fog/compute/openstack/requests/shelve_server.rb +7 -7
  85. data/lib/fog/compute/openstack/requests/start_server.rb +7 -7
  86. data/lib/fog/compute/openstack/requests/stop_server.rb +7 -7
  87. data/lib/fog/compute/openstack/requests/suspend_server.rb +7 -7
  88. data/lib/fog/compute/openstack/requests/unpause_server.rb +7 -7
  89. data/lib/fog/compute/openstack/requests/unshelve_server.rb +7 -7
  90. data/lib/fog/compute/openstack/requests/update_aggregate.rb +4 -4
  91. data/lib/fog/compute/openstack/requests/update_aggregate_metadata.rb +4 -4
  92. data/lib/fog/dns/openstack.rb +3 -0
  93. data/lib/fog/identity/openstack.rb +3 -0
  94. data/lib/fog/identity/openstack/v2/models/role.rb +5 -5
  95. data/lib/fog/identity/openstack/v2/models/roles.rb +4 -4
  96. data/lib/fog/identity/openstack/v2/models/tenant.rb +5 -5
  97. data/lib/fog/identity/openstack/v2/models/tenants.rb +5 -5
  98. data/lib/fog/identity/openstack/v2/models/user.rb +5 -5
  99. data/lib/fog/identity/openstack/v2/models/users.rb +5 -5
  100. data/lib/fog/identity/openstack/v2/requests/add_user_to_tenant.rb +6 -6
  101. data/lib/fog/identity/openstack/v2/requests/create_ec2_credential.rb +1 -1
  102. data/lib/fog/identity/openstack/v2/requests/create_role.rb +1 -1
  103. data/lib/fog/identity/openstack/v2/requests/create_tenant.rb +8 -8
  104. data/lib/fog/identity/openstack/v2/requests/create_user.rb +1 -1
  105. data/lib/fog/identity/openstack/v2/requests/create_user_role.rb +1 -1
  106. data/lib/fog/identity/openstack/v2/requests/delete_ec2_credential.rb +1 -1
  107. data/lib/fog/identity/openstack/v2/requests/delete_role.rb +1 -1
  108. data/lib/fog/identity/openstack/v2/requests/delete_tenant.rb +8 -8
  109. data/lib/fog/identity/openstack/v2/requests/delete_user.rb +1 -1
  110. data/lib/fog/identity/openstack/v2/requests/delete_user_role.rb +1 -1
  111. data/lib/fog/identity/openstack/v2/requests/get_ec2_credential.rb +1 -1
  112. data/lib/fog/identity/openstack/v2/requests/get_role.rb +5 -5
  113. data/lib/fog/identity/openstack/v2/requests/get_tenant.rb +7 -7
  114. data/lib/fog/identity/openstack/v2/requests/get_tenants_by_id.rb +1 -1
  115. data/lib/fog/identity/openstack/v2/requests/get_tenants_by_name.rb +1 -1
  116. data/lib/fog/identity/openstack/v2/requests/get_user_by_id.rb +1 -1
  117. data/lib/fog/identity/openstack/v2/requests/get_user_by_name.rb +1 -1
  118. data/lib/fog/identity/openstack/v2/requests/list_ec2_credentials.rb +1 -1
  119. data/lib/fog/identity/openstack/v2/requests/list_endpoints_for_token.rb +1 -1
  120. data/lib/fog/identity/openstack/v2/requests/list_roles.rb +1 -1
  121. data/lib/fog/identity/openstack/v2/requests/list_roles_for_user_on_tenant.rb +8 -8
  122. data/lib/fog/identity/openstack/v2/requests/list_tenants.rb +7 -7
  123. data/lib/fog/identity/openstack/v2/requests/list_user_global_roles.rb +1 -1
  124. data/lib/fog/identity/openstack/v2/requests/list_users.rb +6 -6
  125. data/lib/fog/identity/openstack/v2/requests/remove_user_from_tenant.rb +6 -6
  126. data/lib/fog/identity/openstack/v2/requests/set_tenant.rb +4 -4
  127. data/lib/fog/identity/openstack/v2/requests/update_tenant.rb +8 -8
  128. data/lib/fog/identity/openstack/v2/requests/update_user.rb +1 -1
  129. data/lib/fog/image/openstack.rb +3 -0
  130. data/lib/fog/image/openstack/v1/requests/add_member_to_image.rb +7 -7
  131. data/lib/fog/image/openstack/v1/requests/get_image.rb +6 -6
  132. data/lib/fog/image/openstack/v1/requests/get_image_by_id.rb +6 -6
  133. data/lib/fog/image/openstack/v1/requests/get_image_members.rb +6 -6
  134. data/lib/fog/image/openstack/v1/requests/get_shared_images.rb +6 -6
  135. data/lib/fog/image/openstack/v1/requests/list_public_images.rb +6 -6
  136. data/lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb +6 -6
  137. data/lib/fog/image/openstack/v1/requests/remove_member_from_image.rb +6 -6
  138. data/lib/fog/image/openstack/v1/requests/set_tenant.rb +3 -3
  139. data/lib/fog/image/openstack/v1/requests/update_image_members.rb +5 -5
  140. data/lib/fog/image/openstack/v2/requests/add_member_to_image.rb +6 -6
  141. data/lib/fog/image/openstack/v2/requests/add_tag_to_image.rb +6 -6
  142. data/lib/fog/image/openstack/v2/requests/download_image.rb +6 -6
  143. data/lib/fog/image/openstack/v2/requests/get_image.rb +6 -6
  144. data/lib/fog/image/openstack/v2/requests/get_image_by_id.rb +6 -6
  145. data/lib/fog/image/openstack/v2/requests/get_image_members.rb +6 -6
  146. data/lib/fog/image/openstack/v2/requests/get_member_details.rb +6 -6
  147. data/lib/fog/image/openstack/v2/requests/get_shared_images.rb +6 -6
  148. data/lib/fog/image/openstack/v2/requests/list_images.rb +6 -6
  149. data/lib/fog/image/openstack/v2/requests/remove_member_from_image.rb +6 -6
  150. data/lib/fog/image/openstack/v2/requests/remove_tag_from_image.rb +6 -6
  151. data/lib/fog/image/openstack/v2/requests/set_tenant.rb +3 -3
  152. data/lib/fog/image/openstack/v2/requests/update_image_member.rb +5 -5
  153. data/lib/fog/openstack.rb +27 -47
  154. data/lib/fog/openstack/version.rb +2 -2
  155. data/lib/fog/planning/openstack.rb +2 -2
  156. data/lib/fog/planning/openstack/models/plan.rb +1 -1
  157. data/lib/fog/planning/openstack/models/plans.rb +2 -2
  158. data/lib/fog/planning/openstack/models/role.rb +1 -1
  159. data/lib/fog/planning/openstack/models/roles.rb +2 -2
  160. data/lib/fog/planning/openstack/requests/add_role_to_plan.rb +7 -7
  161. data/lib/fog/planning/openstack/requests/create_plan.rb +7 -7
  162. data/lib/fog/planning/openstack/requests/delete_plan.rb +7 -7
  163. data/lib/fog/planning/openstack/requests/get_plan.rb +7 -7
  164. data/lib/fog/planning/openstack/requests/get_plan_templates.rb +7 -7
  165. data/lib/fog/planning/openstack/requests/list_plans.rb +7 -7
  166. data/lib/fog/planning/openstack/requests/list_roles.rb +7 -7
  167. data/lib/fog/planning/openstack/requests/patch_plan.rb +7 -7
  168. data/lib/fog/planning/openstack/requests/remove_role_from_plan.rb +7 -7
  169. data/lib/fog/shared_file_system/openstack.rb +44 -9
  170. data/lib/fog/shared_file_system/openstack/requests/add_security_service_to_share_network.rb +28 -0
  171. data/lib/fog/shared_file_system/openstack/requests/create_security_service.rb +47 -0
  172. data/lib/fog/shared_file_system/openstack/requests/delete_security_service.rb +24 -0
  173. data/lib/fog/shared_file_system/openstack/requests/get_security_service.rb +26 -0
  174. data/lib/fog/shared_file_system/openstack/requests/list_security_services.rb +25 -0
  175. data/lib/fog/shared_file_system/openstack/requests/list_security_services_detail.rb +25 -0
  176. data/lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb +28 -0
  177. data/lib/fog/shared_file_system/openstack/requests/share_network_action.rb +16 -0
  178. data/lib/fog/shared_file_system/openstack/requests/update_security_service.rb +31 -0
  179. data/lib/fog/storage/openstack/models/file.rb +2 -0
  180. data/lib/fog/volume/openstack.rb +3 -0
  181. data/lib/fog/volume/openstack/requests/set_tenant.rb +3 -3
  182. data/playbooks/.gitkeep +0 -0
  183. data/playbooks/fog-openstack-unittest-spec/run.yaml +57 -0
  184. data/playbooks/fog-openstack-unittest-test/run.yaml +57 -0
  185. metadata +18 -6
  186. data/.ruby-version +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7747fff8d19d57ebe37075c44556ec030fed69b
4
- data.tar.gz: a5f2d60b3888fa2053a26ed6d9e16707ef20136e
3
+ metadata.gz: d3348399a88b9e9c9d222f75d2f0ded6f74a64f7
4
+ data.tar.gz: 5f1b769ff3bc1f12b2e238c6c53bcc585392f9ac
5
5
  SHA512:
6
- metadata.gz: 853b8e7811143a70ba0fdf6806c8ef9c1646b1f83b391196ce2373189f3a054a55c44ba4e7d2cafa96a4115fcbafce50aa860b441e7770d782973151087eff4f
7
- data.tar.gz: 488bd961ef8ef1df45f744dc96451dba5b63af7800e45e9faeb2be9a68c64604b9216bc2f48646a0ff8ff44d815d2ba06104dee8776871d50e7c12ea05264bbe
6
+ metadata.gz: f1308a13a800a9a95a21fc93d2be5f6d56e4f74c4da952589e3d1f1fce77707baaeb3b42d1cd99244aea26550f6ba5788340ed58bd70c4abb6ad1c1e4a6e70c3
7
+ data.tar.gz: 6243316e3b1aa9036847e0b3e052dd111954c0acc9b0e27c8c4dba1a9e4aee87d3a204a4ca6afe1428ce7fd73dbba2a530a1f7bd2606bde728619d34fa1c50c3
@@ -100,7 +100,9 @@ StringLiterals:
100
100
  Enabled: false
101
101
  StringLiteralsInInterpolation:
102
102
  Enabled: false
103
- TrailingCommaInLiteral:
103
+ TrailingCommaInArrayLiteral:
104
+ Enabled: false
105
+ TrailingCommaInHashLiteral:
104
106
  Enabled: false
105
107
  WhileUntilModifier:
106
108
  Enabled: false
@@ -10,13 +10,13 @@ env:
10
10
  matrix:
11
11
  fast_finish: true
12
12
  include:
13
- - rvm: 2.2.0
13
+ - rvm: 2.2.10
14
14
  gemfile: Gemfile
15
- - rvm: 2.3.0
15
+ - rvm: 2.3.7
16
16
  gemfile: Gemfile
17
- - rvm: 2.3.1
17
+ - rvm: 2.4.4
18
18
  gemfile: Gemfile
19
- - rvm: 2.4.2
19
+ - rvm: 2.5.1
20
20
  gemfile: Gemfile
21
21
  - rvm: jruby-head
22
22
  gemfile: Gemfile
@@ -0,0 +1,35 @@
1
+ - project:
2
+ check:
3
+ jobs:
4
+ - fog-openstack-unittest-test
5
+ - fog-openstack-unittest-spec
6
+
7
+ - job:
8
+ name: fog-openstack-unittest-test
9
+ parent: init-test
10
+ description: |
11
+ fog-openstack unittest test tests
12
+ run: playbooks/fog-openstack-unittest-test/run.yaml
13
+ vars:
14
+ rvm:
15
+ 2.2.10
16
+ 2.3.7
17
+ 2.4.4
18
+ 2.5.1
19
+ jruby-head
20
+ nodeset: ubuntu-xenial
21
+
22
+ - job:
23
+ name: fog-openstack-unittest-spec
24
+ parent: init-test
25
+ description: |
26
+ fog-openstack unittest spec tests
27
+ run: playbooks/fog-openstack-unittest-spec/run.yaml
28
+ vars:
29
+ rvm:
30
+ 2.2.10
31
+ 2.3.7
32
+ 2.4.4
33
+ 2.5.1
34
+ jruby-head
35
+ nodeset: ubuntu-xenial
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Fog::Openstack
1
+ # Fog::OpenStack
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/fog-openstack.svg)](http://badge.fury.io/rb/fog-openstack) [![Build Status](https://travis-ci.org/fog/fog-openstack.svg?branch=master)](https://travis-ci.org/fog/fog-openstack) [![Dependency Status](https://gemnasium.com/fog/fog-openstack.svg)](https://gemnasium.com/fog/fog-openstack) [![Coverage Status](https://coveralls.io/repos/github/fog/fog-openstack/badge.svg?branch=master)](https://coveralls.io/github/fog/fog-openstack?branch=master) [![Code Climate](https://codeclimate.com/github/fog/fog-openstack.svg)](https://codeclimate.com/github/fog/fog-openstack) [![Join the chat at https://gitter.im/fog/fog-openstack](https://badges.gitter.im/fog/fog-openstack.svg)](https://gitter.im/fog/fog-openstack?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4
4
 
@@ -95,7 +95,7 @@ p compute.images
95
95
  # <Fog::Compute::OpenStack::Image
96
96
  # id="57a67f8a-7bae-4578-b684-b9b4dcd48d7f",
97
97
  # ...
98
- # >
98
+ # >
99
99
  # ]
100
100
  # >
101
101
  ```
@@ -401,7 +401,7 @@ identity.domains
401
401
  # description="",
402
402
  # enabled=true,
403
403
  # name="Default",
404
- # >
404
+ # >
405
405
  # ]
406
406
  # >
407
407
  ```
data/Rakefile CHANGED
@@ -4,27 +4,24 @@ require 'rake/testtask'
4
4
 
5
5
  RuboCop::RakeTask.new
6
6
 
7
- task :default => :test
7
+ task :default => ['tests:unit', 'tests:spec']
8
8
 
9
- desc 'Run fog-openstack unit tests with Minitest'
10
- task :test do
11
- mock = ENV['FOG_MOCK'] || 'true'
12
- sh("export FOG_MOCK=#{mock} && bundle exec rake tests:unit")
13
- end
9
+ task :test => 'tests:unit'
14
10
 
15
- desc 'Run fog-openstack spec/ tests (VCR)'
16
11
  task :spec => "tests:spec"
17
12
 
18
13
  namespace :tests do
19
- desc "Run fog-openstack test/"
14
+ desc 'Run fog-openstack tests with Minitest'
20
15
  Rake::TestTask.new do |t|
16
+ ENV['FOG_MOCK']= ENV['FOG_MOCK'].nil? ? 'true' : ENV['FOG_MOCK']
17
+
21
18
  t.name = 'unit'
22
19
  t.libs.push [ "lib", "test" ]
23
20
  t.test_files = FileList['test/**/*.rb']
24
21
  t.verbose = true
25
22
  end
26
23
 
27
- desc "Run fog-openstack spec/"
24
+ desc 'Run fog-openstack tests with RSpec and VCR'
28
25
  Rake::TestTask.new do |t|
29
26
  t.name = 'spec'
30
27
  t.libs.push [ "lib", "spec" ]
@@ -31,7 +31,7 @@ require 'fog/openstack'
31
31
  Next, create a connection to Tuskar:
32
32
 
33
33
  ```ruby
34
- service = Fog::Openstack.new({
34
+ service = Fog::OpenStack.new({
35
35
  :service => :planning, # OpenStack Fog service
36
36
  :openstack_username => USERNAME, # Your OpenStack Username
37
37
  :openstack_api_key => PASSWORD, # Your OpenStack Password
@@ -48,7 +48,7 @@ Fog provides both a **model** and **request** abstraction. The request abstracti
48
48
 
49
49
  ### Request Layer
50
50
 
51
- The `Fog::Openstack[:planning]` object supports a number of methods that wrap individual HTTP requests to the Tuskar API.
51
+ The `Fog::OpenStack[:planning]` object supports a number of methods that wrap individual HTTP requests to the Tuskar API.
52
52
 
53
53
  To see a list of requests supported by the planning service:
54
54
 
@@ -170,7 +170,7 @@ This will return hash similar to:
170
170
  ```
171
171
 
172
172
  [//]: # (TODO: Specify URL to rubydoc.info when OpenStack Planning service is part of release and pages are built)
173
- To learn more about `Fog::Openstack[:planning]` request methods refer to [rdoc](http://rubydoc.info/gems/fog/Fog). To learn more about Excon refer to [Excon GitHub repo](https://github.com/geemus/excon).
173
+ To learn more about `Fog::OpenStack[:planning]` request methods refer to [rdoc](http://rubydoc.info/gems/fog/Fog). To learn more about Excon refer to [Excon GitHub repo](https://github.com/geemus/excon).
174
174
 
175
175
  ### Model Layer
176
176
 
@@ -257,7 +257,7 @@ To upload a file into a directory:
257
257
  file = directory.files.create :key => 'space.jpg', :body => File.open "space.jpg"
258
258
  ```
259
259
 
260
- **Note**: For files larger than 5 GB please refer to the [Upload Large Files](#upload_large_files) section.
260
+ **Note**: For files larger than 5 GB please refer to the [Upload Large Files](#upload-large-files) section.
261
261
 
262
262
  ### Additional Parameters
263
263
 
@@ -8,7 +8,7 @@ username = 'admin@example.net'
8
8
  password = 'secret'
9
9
  tenant = 'My Compute Tenant' # String
10
10
 
11
- planning ||= ::Fog::Openstack.new(
11
+ planning ||= ::Fog::OpenStack.new(
12
12
  :service => :planning,
13
13
  :openstack_api_key => password,
14
14
  :openstack_username => username,
@@ -5,7 +5,7 @@ require 'fog/openstack/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "fog-openstack"
8
- spec.version = Fog::Openstack::VERSION
8
+ spec.version = Fog::OpenStack::VERSION
9
9
  spec.authors = ["Matt Darby"]
10
10
  spec.email = ["matt.darby@rackspace.com"]
11
11
 
@@ -19,9 +19,9 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.required_ruby_version = '>= 2.1.0'
22
+ spec.required_ruby_version = '>= 2.2.0'
23
23
 
24
- spec.add_dependency 'fog-core', '~> 1.40'
24
+ spec.add_dependency 'fog-core', '~> 1.45.0'
25
25
  spec.add_dependency 'fog-json', '>= 1.0'
26
26
  spec.add_dependency 'ipaddress', '>= 0.8'
27
27
 
@@ -38,7 +38,7 @@ module Fog
38
38
  response.body = data[:chassis_collection].first
39
39
  response
40
40
  end
41
- end # mock
42
- end # openstack
43
- end # baremetal
44
- end # fog
41
+ end
42
+ end
43
+ end
44
+ end
@@ -48,7 +48,7 @@ module Fog
48
48
  response.body = data[:nodes].first
49
49
  response
50
50
  end
51
- end # mock
52
- end # openstack
53
- end # baremetal
54
- end # fog
51
+ end
52
+ end
53
+ end
54
+ end
@@ -40,7 +40,7 @@ module Fog
40
40
  response.body = data[:ports].first
41
41
  response
42
42
  end
43
- end # mock
44
- end # openstack
45
- end # baremetal
46
- end # fog
43
+ end
44
+ end
45
+ end
46
+ end
@@ -9,7 +9,7 @@ module Fog
9
9
  :path => "chassis/#{chassis_uuid}"
10
10
  )
11
11
  end
12
- end # class Real
12
+ end
13
13
 
14
14
  class Mock
15
15
  def get_chassis(_chassis_uuid)
@@ -17,8 +17,8 @@ module Fog
17
17
  response.status = [200, 204][rand(2)]
18
18
  response.body = data[:chassis_collection].first
19
19
  response
20
- end # def get_chassis
21
- end # class Mock
22
- end # class OpenStack
23
- end # module Baremetal
24
- end # module Fog
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -9,7 +9,7 @@ module Fog
9
9
  :path => "drivers/#{driver_name}"
10
10
  )
11
11
  end
12
- end # class Real
12
+ end
13
13
 
14
14
  class Mock
15
15
  def get_driver(_driver_name)
@@ -17,8 +17,8 @@ module Fog
17
17
  response.status = [200, 204][rand(2)]
18
18
  response.body = data[:drivers].first
19
19
  response
20
- end # def get_driver
21
- end # class Mock
22
- end # class OpenStack
23
- end # module Baremetal
24
- end # module Fog
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -11,7 +11,7 @@ module Fog
11
11
  :path => "drivers/properties"
12
12
  )
13
13
  end
14
- end # class Real
14
+ end
15
15
 
16
16
  class Mock
17
17
  def get_driver_properties(_driver_name)
@@ -33,8 +33,8 @@ module Fog
33
33
  "ipmi_bridging" => "bridging_type."
34
34
  }
35
35
  response
36
- end # def get_driver_properties
37
- end # class Mock
38
- end # class OpenStack
39
- end # module Baremetal
40
- end # module Fog
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -9,7 +9,7 @@ module Fog
9
9
  :path => "nodes/#{node_id}"
10
10
  )
11
11
  end
12
- end # class Real
12
+ end
13
13
 
14
14
  class Mock
15
15
  def get_node(_node_id)
@@ -17,8 +17,8 @@ module Fog
17
17
  response.status = [200, 204][rand(2)]
18
18
  response.body = data[:nodes].first
19
19
  response
20
- end # def get_node
21
- end # class Mock
22
- end # class OpenStack
23
- end # module Baremetal
24
- end # module Fog
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -9,7 +9,7 @@ module Fog
9
9
  :path => "ports/#{port_id}"
10
10
  )
11
11
  end
12
- end # class Real
12
+ end
13
13
 
14
14
  class Mock
15
15
  def get_port(_port_id)
@@ -17,8 +17,8 @@ module Fog
17
17
  response.status = [200, 204][rand(2)]
18
18
  response.body = data[:ports].first
19
19
  response
20
- end # def get_port
21
- end # class Mock
22
- end # class OpenStack
23
- end # module Baremetal
24
- end # module Fog
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -10,7 +10,7 @@ module Fog
10
10
  :query => options
11
11
  )
12
12
  end
13
- end # class Real
13
+ end
14
14
 
15
15
  class Mock
16
16
  def list_chassis(_parameters = nil)
@@ -35,8 +35,8 @@ module Fog
35
35
  ]
36
36
  }
37
37
  response
38
- end # def list_chassis
39
- end # class Mock
40
- end # class OpenStack
41
- end # module Baremetal
42
- end # module Fog
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
@@ -10,7 +10,7 @@ module Fog
10
10
  :query => options
11
11
  )
12
12
  end
13
- end # class Real
13
+ end
14
14
 
15
15
  class Mock
16
16
  def list_chassis_detailed(_options = {})
@@ -18,8 +18,8 @@ module Fog
18
18
  response.status = [200, 204][rand(2)]
19
19
  response.body = {"chassis" => data[:chassis_collection]}
20
20
  response
21
- end # def list_chassis_detailed
22
- end # class Mock
23
- end # class OpenStack
24
- end # module Baremetal
25
- end # module Fog
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -10,7 +10,7 @@ module Fog
10
10
  :query => options
11
11
  )
12
12
  end
13
- end # class Real
13
+ end
14
14
 
15
15
  class Mock
16
16
  def list_drivers(_options = {})
@@ -18,8 +18,8 @@ module Fog
18
18
  response.status = [200, 204][rand(2)]
19
19
  response.body = {"drivers" => data[:drivers]}
20
20
  response
21
- end # def list_drivers
22
- end # class Mock
23
- end # class OpenStack
24
- end # module Baremetal
25
- end # module Fog
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -10,7 +10,7 @@ module Fog
10
10
  :query => options
11
11
  )
12
12
  end
13
- end # class Real
13
+ end
14
14
 
15
15
  class Mock
16
16
  def list_nodes(_options = {})
@@ -27,8 +27,8 @@ module Fog
27
27
  }]
28
28
  }
29
29
  response
30
- end # def list_nodes
31
- end # class Mock
32
- end # class OpenStack
33
- end # module Baremetal
34
- end # module Fog
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end