brightbox-cli 0.17.1 → 0.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. data/.gitignore +1 -1
  2. data/brightbox-cli.gemspec +10 -9
  3. data/lib/brightbox-cli/commands/servers-activate-console.rb +1 -1
  4. data/lib/brightbox-cli/commands/types-show.rb +5 -4
  5. data/lib/brightbox-cli/config.rb +1 -1
  6. data/lib/brightbox-cli/detailed_server.rb +2 -1
  7. data/lib/brightbox-cli/gli_global_hooks.rb +1 -8
  8. data/lib/brightbox-cli/server_groups.rb +4 -0
  9. data/lib/brightbox-cli/servers.rb +5 -13
  10. data/lib/brightbox-cli/types.rb +1 -1
  11. data/lib/brightbox-cli/vendor/fog/.gitignore +1 -0
  12. data/lib/brightbox-cli/vendor/fog/README.rdoc +1 -1
  13. data/lib/brightbox-cli/vendor/fog/Rakefile +4 -3
  14. data/lib/brightbox-cli/vendor/fog/changelog.txt +213 -0
  15. data/lib/brightbox-cli/vendor/fog/docs/compute/index.markdown +15 -1
  16. data/lib/brightbox-cli/vendor/fog/docs/index.markdown +1 -1
  17. data/lib/brightbox-cli/vendor/fog/docs/storage/index.markdown +4 -4
  18. data/lib/brightbox-cli/vendor/fog/examples/compute_tests.rb +18 -6
  19. data/lib/brightbox-cli/vendor/fog/examples/dns_tests.rb +1 -1
  20. data/lib/brightbox-cli/vendor/fog/examples/storage_tests.rb +1 -1
  21. data/lib/brightbox-cli/vendor/fog/fog.gemspec +4 -3
  22. data/lib/brightbox-cli/vendor/fog/lib/fog.rb +1 -1
  23. data/lib/brightbox-cli/vendor/fog/lib/fog/aws.rb +16 -1
  24. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/auto_scaling.rb +2 -17
  25. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/cloud_formation.rb +1 -16
  26. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/cloud_watch.rb +2 -17
  27. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/compute.rb +10 -21
  28. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/elasticache.rb +1 -7
  29. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/elb.rb +34 -24
  30. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/emr.rb +5 -4
  31. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/iam.rb +16 -1
  32. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/auto_scaling/group.rb +2 -2
  33. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/cloud_watch/metric_statistic.rb +1 -2
  34. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/compute/security_group.rb +3 -3
  35. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/compute/security_groups.rb +25 -0
  36. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/compute/server.rb +4 -1
  37. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/dns/records.rb +3 -3
  38. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/elb/listener.rb +9 -7
  39. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/elb/load_balancer.rb +6 -0
  40. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/storage/directory.rb +21 -0
  41. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/storage/file.rb +19 -5
  42. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/storage/files.rb +4 -4
  43. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/describe_instances.rb +2 -2
  44. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/describe_security_groups.rb +2 -2
  45. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/sqs/receive_message.rb +1 -1
  46. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/rds.rb +41 -18
  47. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/create_security_group.rb +6 -4
  48. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/create_tags.rb +3 -2
  49. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/describe_availability_zones.rb +3 -0
  50. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/describe_security_groups.rb +2 -0
  51. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/create_app_cookie_stickiness_policy.rb +2 -0
  52. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/create_lb_cookie_stickiness_policy.rb +3 -1
  53. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/create_load_balancer.rb +7 -2
  54. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/create_load_balancer_listeners.rb +10 -1
  55. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/delete_load_balancer_policy.rb +1 -1
  56. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/describe_load_balancers.rb +5 -1
  57. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/set_load_balancer_listener_ssl_certificate.rb +27 -0
  58. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/set_load_balancer_policies_of_listener.rb +1 -1
  59. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/emr/run_job_flow.rb +9 -7
  60. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/add_user_to_group.rb +24 -0
  61. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/create_access_key.rb +24 -0
  62. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/create_group.rb +21 -0
  63. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/create_user.rb +21 -0
  64. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_access_key.rb +17 -0
  65. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_group.rb +19 -0
  66. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_user.rb +17 -0
  67. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_user_policy.rb +16 -0
  68. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_access_keys.rb +21 -0
  69. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_groups.rb +18 -0
  70. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_groups_for_user.rb +24 -0
  71. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_user_policies.rb +18 -0
  72. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_users.rb +17 -0
  73. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/put_user_policy.rb +18 -0
  74. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/remove_user_from_group.rb +19 -0
  75. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/upload_server_certificate.rb +1 -1
  76. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb +30 -1
  77. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_instance.rb +67 -1
  78. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_security_group.rb +19 -1
  79. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/delete_db_instance.rb +19 -3
  80. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/delete_db_security_group.rb +11 -1
  81. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_instances.rb +56 -1
  82. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_reserved_instances.rb +1 -1
  83. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_security_groups.rb +44 -2
  84. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/modify_db_instance.rb +26 -1
  85. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/reboot_db_instance.rb +17 -1
  86. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/revoke_db_security_group_ingress.rb +27 -1
  87. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/change_message_visibility.rb +1 -1
  88. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/delete_message.rb +1 -1
  89. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/receive_message.rb +13 -14
  90. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/copy_object.rb +14 -6
  91. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/delete_object.rb +73 -2
  92. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_bucket.rb +3 -2
  93. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_bucket_object_versions.rb +95 -2
  94. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_bucket_versioning.rb +32 -0
  95. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_object.rb +27 -1
  96. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_object_http_url.rb +4 -3
  97. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_object_https_url.rb +4 -3
  98. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/put_bucket_versioning.rb +41 -0
  99. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/put_bucket_website.rb +17 -0
  100. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/put_object.rb +25 -9
  101. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/ses.rb +2 -7
  102. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/simpledb.rb +4 -17
  103. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/sns.rb +1 -14
  104. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/sqs.rb +5 -11
  105. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/storage.rb +6 -22
  106. data/lib/brightbox-cli/vendor/fog/lib/fog/bin.rb +2 -0
  107. data/lib/brightbox-cli/vendor/fog/lib/fog/bin/aws.rb +9 -1
  108. data/lib/brightbox-cli/vendor/fog/lib/fog/bin/voxel.rb +1 -1
  109. data/lib/brightbox-cli/vendor/fog/lib/fog/brightbox/models/compute/server.rb +1 -0
  110. data/lib/brightbox-cli/vendor/fog/lib/fog/compute.rb +6 -0
  111. data/lib/brightbox-cli/vendor/fog/lib/fog/compute/models/server.rb +11 -0
  112. data/lib/brightbox-cli/vendor/fog/lib/fog/core.rb +0 -1
  113. data/lib/brightbox-cli/vendor/fog/lib/fog/core/connection.rb +0 -1
  114. data/lib/brightbox-cli/vendor/fog/lib/fog/core/errors.rb +5 -0
  115. data/lib/brightbox-cli/vendor/fog/lib/fog/core/scp.rb +18 -2
  116. data/lib/brightbox-cli/vendor/fog/lib/fog/core/wait_for.rb +1 -1
  117. data/lib/brightbox-cli/vendor/fog/lib/fog/dnsmadeeasy/dns.rb +1 -1
  118. data/lib/brightbox-cli/vendor/fog/lib/fog/dynect/models/dns/records.rb +2 -2
  119. data/lib/brightbox-cli/vendor/fog/lib/fog/dynect/requests/dns/get_node_list.rb +2 -1
  120. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/compute.rb +1 -1
  121. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/add_backup_internet_service.rb +1 -1
  122. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/add_internet_service.rb +2 -2
  123. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/add_node.rb +1 -1
  124. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/clone_vapp.rb +1 -1
  125. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/configure_internet_service.rb +1 -1
  126. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/configure_network.rb +1 -1
  127. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/configure_network_ip.rb +1 -1
  128. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/configure_vapp.rb +1 -1
  129. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/instantiate_vapp_template.rb +1 -1
  130. data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/compute.rb +7 -3
  131. data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/models/compute/nodes.rb +1 -3
  132. data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/models/compute/server.rb +93 -99
  133. data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/models/compute/servers.rb +2 -1
  134. data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/models/compute/util.rb +1 -2
  135. data/lib/brightbox-cli/vendor/fog/lib/fog/providers.rb +2 -0
  136. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/dns.rb +10 -2
  137. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/load_balancers.rb +3 -0
  138. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/compute/flavor.rb +2 -0
  139. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/compute/server.rb +2 -2
  140. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/dns/callback.rb +3 -1
  141. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/dns/record.rb +4 -0
  142. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/load_balancers/load_balancer.rb +18 -8
  143. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/storage/directory.rb +5 -1
  144. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/compute/create_image.rb +1 -3
  145. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/delete_nodes.rb +1 -2
  146. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/list_load_balancers.rb +8 -2
  147. data/lib/brightbox-cli/vendor/fog/lib/fog/storm_on_demand/compute.rb +1 -1
  148. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/compute.rb +91 -30
  149. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/catalog.rb +1 -1
  150. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/catalog_item.rb +1 -1
  151. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/catalogs.rb +5 -8
  152. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/ip.rb +2 -2
  153. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/network.rb +9 -51
  154. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/networks.rb +21 -7
  155. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/server.rb +38 -58
  156. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/servers.rb +12 -18
  157. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/task.rb +1 -1
  158. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/tasks.rb +1 -3
  159. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/vdc.rb +14 -29
  160. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/vdcs.rb +6 -11
  161. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/clone_vapp.rb +1 -1
  162. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/configure_network.rb +1 -1
  163. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/configure_network_ip.rb +1 -1
  164. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/configure_vapp.rb +1 -1
  165. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/configure_vm.rb +1 -1
  166. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/instantiate_vapp_template.rb +1 -1
  167. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/login.rb +8 -4
  168. data/lib/brightbox-cli/vendor/fog/lib/fog/virtual_box/compute.rb +4 -0
  169. data/lib/brightbox-cli/vendor/fog/lib/fog/vsphere/compute.rb +1 -0
  170. data/lib/brightbox-cli/vendor/fog/lib/fog/vsphere/models/compute/server.rb +7 -1
  171. data/lib/brightbox-cli/vendor/fog/lib/fog/vsphere/requests/compute/list_virtual_machines.rb +86 -86
  172. data/lib/brightbox-cli/vendor/fog/lib/fog/vsphere/requests/compute/vm_clone.rb +43 -8
  173. data/lib/brightbox-cli/vendor/fog/lib/fog/zerigo/models/dns/record.rb +7 -5
  174. data/lib/brightbox-cli/vendor/fog/lib/fog/zerigo/requests/dns/update_host.rb +2 -2
  175. data/lib/brightbox-cli/vendor/fog/spec/ecloud/spec_helper.rb +1 -1
  176. data/lib/brightbox-cli/vendor/fog/tests/aws/models/elb/model_tests.rb +15 -6
  177. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/compute/instance_tests.rb +37 -0
  178. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/compute/security_group_tests.rb +6 -4
  179. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/elb/helper.rb +33 -0
  180. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/elb/listener_tests.rb +22 -4
  181. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/elb/policy_tests.rb +13 -0
  182. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/access_key_tests.rb +2 -7
  183. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/group_tests.rb +1 -4
  184. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/user_policy_tests.rb +4 -11
  185. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/user_tests.rb +19 -12
  186. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/rds/helper.rb +38 -3
  187. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/rds/instance_tests.rb +3 -1
  188. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/storage/bucket_tests.rb +66 -1
  189. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/account_tests.rb +3 -3
  190. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/api_client_tests.rb +6 -6
  191. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/cloud_ip_tests.rb +15 -9
  192. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/helper.rb +6 -2
  193. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/image_tests.rb +2 -2
  194. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/interface_tests.rb +1 -1
  195. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/load_balancer_tests.rb +9 -9
  196. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/server_group_tests.rb +8 -8
  197. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/server_tests.rb +17 -13
  198. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/server_type_tests.rb +2 -2
  199. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/user_tests.rb +3 -3
  200. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/zone_tests.rb +2 -2
  201. data/lib/brightbox-cli/vendor/fog/tests/glesys/requests/compute/helper.rb +87 -64
  202. data/lib/brightbox-cli/vendor/fog/tests/glesys/requests/compute/ip_tests.rb +1 -1
  203. data/lib/brightbox-cli/vendor/fog/tests/glesys/requests/compute/server_tests.rb +4 -4
  204. data/lib/brightbox-cli/vendor/fog/tests/helpers/formats_helper.rb +1 -1
  205. data/lib/brightbox-cli/vendor/fog/tests/helpers/mock_helper.rb +2 -0
  206. data/lib/brightbox-cli/vendor/fog/tests/rackspace/requests/dns/dns_tests.rb +4 -2
  207. data/lib/brightbox-cli/vendor/fog/tests/rackspace/requests/load_balancers/helper.rb +27 -11
  208. data/lib/brightbox-cli/vendor/fog/tests/rackspace/requests/load_balancers/load_balancer_tests.rb +4 -1
  209. data/lib/brightbox-cli/vendor/fog/tests/rackspace/requests/load_balancers/node_tests.rb +24 -25
  210. data/lib/brightbox-cli/vendor/fog/tests/slicehost/requests/compute/slice_tests.rb +2 -2
  211. data/lib/brightbox-cli/vendor/fog/tests/storm_on_demand/requests/compute/server_tests.rb +3 -3
  212. data/lib/brightbox-cli/vendor/fog/tests/vcloud/models/compute/servers_tests.rb +18 -90
  213. data/lib/brightbox-cli/vendor/fog/tests/vsphere/requests/compute/vm_clone_tests.rb +16 -4
  214. data/lib/brightbox-cli/vendor/fog/tests/vsphere/requests/compute/vm_power_on_tests.rb +1 -1
  215. data/lib/brightbox-cli/version.rb +1 -1
  216. data/spec/cloud_ips_spec.rb +1 -1
  217. data/spec/fixtures/vcr_cassettes/list_cloud_ip.yml +58 -26
  218. data/spec/fixtures/vcr_cassettes/server_show.yml +143 -102
  219. data/spec/servers_spec.rb +3 -2
  220. data/spec/spec_helper.rb +4 -0
  221. metadata +128 -213
  222. data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/access_list_tests.rb +0 -12
  223. data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/access_lists_tests.rb +0 -12
  224. data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/load_balancer_tests.rb +0 -116
  225. data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/load_balancers_tests.rb +0 -19
  226. data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/node_tests.rb +0 -19
  227. data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/nodes_tests.rb +0 -12
  228. data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/virtual_ip_tests.rb +0 -16
  229. data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/virtual_ips_tests.rb +0 -12
@@ -10,7 +10,7 @@ describe "Cloud IP" do
10
10
  output = capture_stdout {
11
11
  Brightbox.render_table(ips.sort, :vertical => true)
12
12
  }
13
- output.should match(/cip-33fjw/)
13
+ output.should match(/cip-6r5a4/)
14
14
  end
15
15
  end
16
16
 
@@ -1,36 +1,68 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: POST
5
+ uri: https://api.gb1s.brightbox.com:443/token
6
+ body: ! '{"client_id":"cli-cfv8i","grant_type":"none"}'
7
+ headers:
8
+ authorization:
9
+ - Basic Y2xpLWNmdjhpOjMwcjE3cWJ3cWFsb2VtZw==
10
+ content-type:
11
+ - application/json
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message:
16
+ headers:
17
+ date:
18
+ - Thu, 23 Feb 2012 11:19:10 GMT
19
+ server:
20
+ - Apache
21
+ cache-control:
22
+ - no-store
23
+ content-length:
24
+ - '77'
25
+ status:
26
+ - '200'
27
+ vary:
28
+ - Accept-Encoding
29
+ content-type:
30
+ - application/json
31
+ body: ! '{"expires_in":7200,"access_token":"9b1d6a22503562503acde9740b410b89e2444009"}'
32
+ http_version:
33
+ - !ruby/struct:VCR::HTTPInteraction
34
+ request: !ruby/struct:VCR::Request
4
35
  method: GET
5
36
  uri: https://api.gb1s.brightbox.com:443/1.0/cloud_ips
6
37
  body:
7
- headers:
8
- content-type:
38
+ headers:
39
+ authorization:
40
+ - OAuth 9b1d6a22503562503acde9740b410b89e2444009
41
+ content-type:
9
42
  - application/json
10
- authorization:
11
- - OAuth 3f373f2fdb5f3b84101607e69f82b5a810905b67
12
- response: !ruby/struct:VCR::Response
13
- status: !ruby/struct:VCR::ResponseStatus
43
+ response: !ruby/struct:VCR::Response
44
+ status: !ruby/struct:VCR::ResponseStatus
14
45
  code: 200
15
46
  message:
16
- headers:
17
- etag:
18
- - "\"941714dc085643e75d2d19f01554aa6b\""
19
- content-type:
20
- - application/json; charset=utf-8
21
- server:
47
+ headers:
48
+ date:
49
+ - Thu, 23 Feb 2012 11:19:11 GMT
50
+ server:
22
51
  - Apache
23
- date:
24
- - Fri, 21 Oct 2011 12:13:56 GMT
25
- x-runtime:
26
- - "56"
27
- content-length:
28
- - "2980"
29
- cache-control:
52
+ etag:
53
+ - ! '"99340bd6fc2084a8fc85d34f409dcfe1"'
54
+ x-runtime:
55
+ - '66'
56
+ cache-control:
30
57
  - private, max-age=0, must-revalidate
31
- status:
32
- - "200"
33
- vary:
58
+ content-length:
59
+ - '904'
60
+ status:
61
+ - '200'
62
+ vary:
34
63
  - Accept-Encoding
35
- body: "[{\"id\":\"cip-33fjw\",\"resource_type\":\"cloud_ip\",\"url\":\"https://api.gb1s.brightbox.com/1.0/cloud_ips/cip-33fjw\",\"reverse_dns\":\"cip-109-107-39-5.gb1s.brightbox.com\",\"status\":\"mapped\",\"public_ip\":\"109.107.39.5\",\"account\":{\"id\":\"acc-8gq0k\",\"resource_type\":\"account\",\"url\":\"https://api.gb1s.brightbox.com/1.0/account\",\"name\":\"Hemant Account\",\"status\":\"active\"},\"server\":{\"id\":\"srv-7yilp\",\"resource_type\":\"server\",\"url\":\"https://api.gb1s.brightbox.com/1.0/servers/srv-7yilp\",\"name\":\"\",\"created_at\":\"2011-08-18T03:43:30Z\",\"deleted_at\":null,\"hostname\":\"srv-7yilp\",\"started_at\":null,\"status\":\"active\"},\"interface\":{\"id\":\"int-p6vyz\",\"resource_type\":\"interface\",\"url\":\"https://api.gb1s.brightbox.com/1.0/interfaces/int-p6vyz\",\"mac_address\":\"02:24:19:fb:11:ea\",\"ipv4_address\":\"10.251.17.234\",\"ipv6_address\":\"2a02:1348:14b:c47a:24:19ff:fefb:11ea\"},\"load_balancer\":null},{\"id\":\"cip-inku6\",\"resource_type\":\"cloud_ip\",\"url\":\"https://api.gb1s.brightbox.com/1.0/cloud_ips/cip-inku6\",\"reverse_dns\":\"cip-109-107-39-12.gb1s.brightbox.com\",\"status\":\"mapped\",\"public_ip\":\"109.107.39.12\",\"account\":{\"id\":\"acc-8gq0k\",\"resource_type\":\"account\",\"url\":\"https://api.gb1s.brightbox.com/1.0/account\",\"name\":\"Hemant Account\",\"status\":\"active\"},\"server\":{\"id\":\"srv-l3lxf\",\"resource_type\":\"server\",\"url\":\"https://api.gb1s.brightbox.com/1.0/servers/srv-l3lxf\",\"name\":\"ipv61\",\"created_at\":\"2011-09-16T11:12:48Z\",\"deleted_at\":null,\"hostname\":\"srv-l3lxf\",\"started_at\":null,\"status\":\"active\"},\"interface\":{\"id\":\"int-metlu\",\"resource_type\":\"interface\",\"url\":\"https://api.gb1s.brightbox.com/1.0/interfaces/int-metlu\",\"mac_address\":\"02:24:19:fb:25:56\",\"ipv4_address\":\"10.251.37.86\",\"ipv6_address\":\"2a02:1348:14b:c955:24:19ff:fefb:2556\"},\"load_balancer\":null},{\"id\":\"cip-61a9w\",\"resource_type\":\"cloud_ip\",\"url\":\"https://api.gb1s.brightbox.com/1.0/cloud_ips/cip-61a9w\",\"reverse_dns\":\"cip-109-107-39-15.gb1s.brightbox.com\",\"status\":\"mapped\",\"public_ip\":\"109.107.39.15\",\"account\":{\"id\":\"acc-8gq0k\",\"resource_type\":\"account\",\"url\":\"https://api.gb1s.brightbox.com/1.0/account\",\"name\":\"Hemant Account\",\"status\":\"active\"},\"server\":{\"id\":\"srv-ddw5x\",\"resource_type\":\"server\",\"url\":\"https://api.gb1s.brightbox.com/1.0/servers/srv-ddw5x\",\"name\":\"\",\"created_at\":\"2011-09-20T11:12:58Z\",\"deleted_at\":null,\"hostname\":\"srv-ddw5x\",\"started_at\":null,\"status\":\"active\"},\"interface\":{\"id\":\"int-69l2r\",\"resource_type\":\"interface\",\"url\":\"https://api.gb1s.brightbox.com/1.0/interfaces/int-69l2r\",\"mac_address\":\"02:24:19:fb:63:5e\",\"ipv4_address\":\"10.251.99.94\",\"ipv6_address\":\"2a02:1348:14b:d8d7:24:19ff:fefb:635e\"},\"load_balancer\":null},{\"id\":\"cip-nztk5\",\"resource_type\":\"cloud_ip\",\"url\":\"https://api.gb1s.brightbox.com/1.0/cloud_ips/cip-nztk5\",\"reverse_dns\":\"cip-109-107-46-63.gb1s.brightbox.com\",\"status\":\"unmapped\",\"public_ip\":\"109.107.46.63\",\"account\":{\"id\":\"acc-8gq0k\",\"resource_type\":\"account\",\"url\":\"https://api.gb1s.brightbox.com/1.0/account\",\"name\":\"Hemant Account\",\"status\":\"active\"},\"server\":null,\"interface\":null,\"load_balancer\":null}]"
64
+ content-type:
65
+ - application/json; charset=utf-8
66
+ body: ! '[{"id":"cip-6r5a4","resource_type":"cloud_ip","url":"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-6r5a4","reverse_dns":"cip-109-107-39-29.gb1s.brightbox.com","status":"mapped","public_ip":"109.107.39.29","account":{"id":"acc-998rf","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/account","name":"Brighbox
67
+ Systems","status":"active"},"server":{"id":"srv-egjzh","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-egjzh","name":"test1","fqdn":"srv-egjzh.gb1s.","created_at":"2011-11-02T08:07:45Z","deleted_at":null,"hostname":"srv-egjzh","started_at":"2011-12-16T15:47:45Z","status":"active"},"interface":{"id":"int-rbob6","resource_type":"interface","url":"https://api.gb1.brightbox.com/1.0/interfaces/int-rbob6","mac_address":"02:24:19:fa:bc:ee","ipv4_address":"10.250.188.238","ipv6_address":"2a02:1348:14a:af3b:24:19ff:fefa:bcee"},"load_balancer":null}]'
36
68
  http_version:
@@ -1,141 +1,182 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: POST
5
+ uri: https://api.gb1s.brightbox.com:443/token
6
+ body: ! '{"client_id":"cli-cfv8i","grant_type":"none"}'
7
+ headers:
8
+ authorization:
9
+ - Basic Y2xpLWNmdjhpOjMwcjE3cWJ3cWFsb2VtZw==
10
+ content-type:
11
+ - application/json
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message:
16
+ headers:
17
+ date:
18
+ - Thu, 23 Feb 2012 11:27:40 GMT
19
+ server:
20
+ - Apache
21
+ cache-control:
22
+ - no-store
23
+ content-length:
24
+ - '77'
25
+ status:
26
+ - '200'
27
+ vary:
28
+ - Accept-Encoding
29
+ content-type:
30
+ - application/json
31
+ body: ! '{"expires_in":7200,"access_token":"f9f6a5d76a65da83199db1cbdb73482ea6327f80"}'
32
+ http_version:
33
+ - !ruby/struct:VCR::HTTPInteraction
34
+ request: !ruby/struct:VCR::Request
4
35
  method: GET
5
- uri: https://api.gb1s.brightbox.com:443/1.0/servers/srv-7yilp
36
+ uri: https://api.gb1s.brightbox.com:443/1.0/servers/srv-egjzh
6
37
  body:
7
- headers:
8
- content-type:
38
+ headers:
39
+ authorization:
40
+ - OAuth f9f6a5d76a65da83199db1cbdb73482ea6327f80
41
+ content-type:
9
42
  - application/json
10
- authorization:
11
- - OAuth e717de9faa2aaeacd8b55c38def2c53e72b42f06
12
- response: !ruby/struct:VCR::Response
13
- status: !ruby/struct:VCR::ResponseStatus
43
+ response: !ruby/struct:VCR::Response
44
+ status: !ruby/struct:VCR::ResponseStatus
14
45
  code: 200
15
46
  message:
16
- headers:
17
- etag:
18
- - "\"59c4db35962e0c395e5d3708907731a0\""
19
- content-type:
20
- - application/json; charset=utf-8
21
- server:
47
+ headers:
48
+ date:
49
+ - Thu, 23 Feb 2012 11:27:41 GMT
50
+ server:
22
51
  - Apache
23
- date:
24
- - Fri, 14 Oct 2011 13:12:55 GMT
25
- x-runtime:
26
- - "39"
27
- content-length:
28
- - "1779"
29
- cache-control:
52
+ etag:
53
+ - ! '"5b99e72aae961dd40f97e980875fbff9"'
54
+ x-runtime:
55
+ - '88'
56
+ cache-control:
30
57
  - private, max-age=0, must-revalidate
31
- status:
32
- - "200"
33
- vary:
58
+ content-length:
59
+ - '1888'
60
+ status:
61
+ - '200'
62
+ vary:
34
63
  - Accept-Encoding
35
- body: "{\"id\":\"srv-7yilp\",\"resource_type\":\"server\",\"url\":\"https://api.gb1s.brightbox.com/1.0/servers/srv-7yilp\",\"name\":\"\",\"created_at\":\"2011-08-18T03:43:30Z\",\"deleted_at\":null,\"console_token_expires\":null,\"console_url\":null,\"console_token\":null,\"started_at\":null,\"hostname\":\"srv-7yilp\",\"status\":\"active\",\"user_data\":null,\"server_type\":{\"id\":\"typ-eir7x\",\"resource_type\":\"server_type\",\"url\":\"https://api.gb1s.brightbox.com/1.0/server_types/typ-eir7x\",\"name\":\"nano\",\"cores\":2,\"handle\":\"nano\",\"disk_size\":20480,\"ram\":512,\"status\":\"available\"},\"zone\":{\"id\":\"zon-nzn7l\",\"resource_type\":\"zone\",\"url\":\"https://api.gb1s.brightbox.com/1.0/zones/zon-nzn7l\",\"handle\":\"gb1s-b\"},\"cloud_ips\":[{\"id\":\"cip-33fjw\",\"resource_type\":\"cloud_ip\",\"url\":\"https://api.gb1s.brightbox.com/1.0/cloud_ips/cip-33fjw\",\"reverse_dns\":\"cip-109-107-39-5.gb1s.brightbox.com\",\"status\":\"mapped\",\"public_ip\":\"109.107.39.5\"}],\"account\":{\"id\":\"acc-8gq0k\",\"resource_type\":\"account\",\"url\":\"https://api.gb1s.brightbox.com/1.0/account\",\"name\":\"Hemant Account\",\"status\":\"active\"},\"snapshots\":[],\"interfaces\":[{\"id\":\"int-p6vyz\",\"resource_type\":\"interface\",\"url\":\"https://api.gb1s.brightbox.com/1.0/interfaces/int-p6vyz\",\"mac_address\":\"02:24:19:fb:11:ea\",\"ipv4_address\":\"10.251.17.234\",\"ipv6_address\":\"2a02:1348:14b:c47a:24:19ff:fefb:11ea\"}],\"server_groups\":[{\"id\":\"grp-pb7oa\",\"resource_type\":\"server_group\",\"url\":\"https://api.gb1s.brightbox.com/1.0/server_groups/grp-pb7oa\",\"name\":\"proxy\",\"default\":false,\"description\":null}],\"image\":{\"id\":\"img-ymfuq\",\"resource_type\":\"image\",\"url\":\"https://api.gb1s.brightbox.com/1.0/images/img-ymfuq\",\"name\":\"Ubuntu Lucid 10.04 server\",\"created_at\":\"2011-06-01T15:43:38Z\",\"arch\":\"i686\",\"description\":\"login: ubuntu using stored ssh key\",\"status\":\"available\",\"source\":\"lucid.img\",\"owner\":\"acc-kg71m\"}}"
64
+ content-type:
65
+ - application/json; charset=utf-8
66
+ body: ! '{"id":"srv-egjzh","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-egjzh","name":"test1","fqdn":"srv-egjzh.gb1s.","created_at":"2011-11-02T08:07:45Z","deleted_at":null,"console_token_expires":null,"console_url":null,"console_token":null,"started_at":"2011-12-16T15:47:45Z","hostname":"srv-egjzh","status":"active","user_data":null,"server_type":{"id":"typ-eir7x","resource_type":"server_type","url":"https://api.gb1.brightbox.com/1.0/server_types/typ-eir7x","name":"nano","cores":2,"handle":"nano","disk_size":20480,"ram":512,"status":"available"},"zone":{"id":"zon-uvinx","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-uvinx","handle":"gb1s-b"},"cloud_ips":[{"id":"cip-6r5a4","resource_type":"cloud_ip","url":"https://api.gb1.brightbox.com/1.0/cloud_ips/cip-6r5a4","reverse_dns":"cip-109-107-39-29.gb1s.brightbox.com","status":"mapped","public_ip":"109.107.39.29"}],"account":{"id":"acc-998rf","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/account","name":"Brighbox
67
+ Systems","status":"active"},"snapshots":[],"interfaces":[{"id":"int-rbob6","resource_type":"interface","url":"https://api.gb1.brightbox.com/1.0/interfaces/int-rbob6","mac_address":"02:24:19:fa:bc:ee","ipv4_address":"10.250.188.238","ipv6_address":"2a02:1348:14a:af3b:24:19ff:fefa:bcee"}],"server_groups":[{"id":"grp-th4pa","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-th4pa","name":"load
68
+ balanced","created_at":"2011-11-02T13:09:29Z","default":false,"description":null}],"image":{"id":"img-ymfuq","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-ymfuq","name":"Ubuntu
69
+ Lucid 10.04 server","created_at":"2011-06-01T15:43:38Z","username":"ubuntu","arch":"i686","description":"login:
70
+ ubuntu using stored ssh key","status":"available","source":"lucid.img","owner":"acc-kg71m"}}'
36
71
  http_version:
37
- - !ruby/struct:VCR::HTTPInteraction
38
- request: !ruby/struct:VCR::Request
72
+ - !ruby/struct:VCR::HTTPInteraction
73
+ request: !ruby/struct:VCR::Request
39
74
  method: GET
40
75
  uri: https://api.gb1s.brightbox.com:443/1.0/images/img-ymfuq
41
76
  body:
42
- headers:
43
- content-type:
77
+ headers:
78
+ authorization:
79
+ - OAuth f9f6a5d76a65da83199db1cbdb73482ea6327f80
80
+ content-type:
44
81
  - application/json
45
- authorization:
46
- - OAuth e717de9faa2aaeacd8b55c38def2c53e72b42f06
47
- response: !ruby/struct:VCR::Response
48
- status: !ruby/struct:VCR::ResponseStatus
82
+ response: !ruby/struct:VCR::Response
83
+ status: !ruby/struct:VCR::ResponseStatus
49
84
  code: 200
50
85
  message:
51
- headers:
52
- etag:
53
- - "\"6e6f8f223836a3fe402757fe35982a9d\""
54
- content-type:
55
- - application/json; charset=utf-8
56
- server:
86
+ headers:
87
+ date:
88
+ - Thu, 23 Feb 2012 11:27:42 GMT
89
+ server:
57
90
  - Apache
58
- date:
59
- - Fri, 14 Oct 2011 13:12:56 GMT
60
- x-runtime:
61
- - "11"
62
- content-length:
63
- - "432"
64
- cache-control:
91
+ etag:
92
+ - ! '"66c3c1ee5a081759ba5daa44354de1aa"'
93
+ x-runtime:
94
+ - '24'
95
+ cache-control:
65
96
  - private, max-age=0, must-revalidate
66
- status:
67
- - "200"
68
- vary:
97
+ content-length:
98
+ - '466'
99
+ status:
100
+ - '200'
101
+ vary:
69
102
  - Accept-Encoding
70
- body: "{\"id\":\"img-ymfuq\",\"resource_type\":\"image\",\"url\":\"https://api.gb1s.brightbox.com/1.0/images/img-ymfuq\",\"name\":\"Ubuntu Lucid 10.04 server\",\"created_at\":\"2011-06-01T15:43:38Z\",\"public\":true,\"disk_size\":538,\"official\":true,\"arch\":\"i686\",\"compatibility_mode\":false,\"source_type\":\"upload\",\"description\":\"login: ubuntu using stored ssh key\",\"source\":\"lucid.img\",\"status\":\"available\",\"owner\":\"acc-kg71m\",\"virtual_size\":1409,\"ancestor\":null}"
103
+ content-type:
104
+ - application/json; charset=utf-8
105
+ body: ! '{"id":"img-ymfuq","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-ymfuq","name":"Ubuntu
106
+ Lucid 10.04 server","created_at":"2011-06-01T15:43:38Z","public":true,"disk_size":538,"official":true,"arch":"i686","username":"ubuntu","compatibility_mode":false,"source_type":"upload","description":"login:
107
+ ubuntu using stored ssh key","source":"lucid.img","status":"available","owner":"acc-kg71m","min_ram":null,"virtual_size":1409,"ancestor":null}'
71
108
  http_version:
72
- - !ruby/struct:VCR::HTTPInteraction
73
- request: !ruby/struct:VCR::Request
109
+ - !ruby/struct:VCR::HTTPInteraction
110
+ request: !ruby/struct:VCR::Request
74
111
  method: GET
75
112
  uri: https://api.gb1s.brightbox.com:443/1.0/images/img-ymfuq
76
113
  body:
77
- headers:
78
- content-type:
114
+ headers:
115
+ authorization:
116
+ - OAuth f9f6a5d76a65da83199db1cbdb73482ea6327f80
117
+ content-type:
79
118
  - application/json
80
- authorization:
81
- - OAuth e717de9faa2aaeacd8b55c38def2c53e72b42f06
82
- response: !ruby/struct:VCR::Response
83
- status: !ruby/struct:VCR::ResponseStatus
119
+ response: !ruby/struct:VCR::Response
120
+ status: !ruby/struct:VCR::ResponseStatus
84
121
  code: 200
85
122
  message:
86
- headers:
87
- etag:
88
- - "\"6e6f8f223836a3fe402757fe35982a9d\""
89
- content-type:
90
- - application/json; charset=utf-8
91
- server:
123
+ headers:
124
+ date:
125
+ - Thu, 23 Feb 2012 11:27:43 GMT
126
+ server:
92
127
  - Apache
93
- date:
94
- - Fri, 14 Oct 2011 13:12:57 GMT
95
- x-runtime:
96
- - "12"
97
- content-length:
98
- - "432"
99
- cache-control:
128
+ etag:
129
+ - ! '"66c3c1ee5a081759ba5daa44354de1aa"'
130
+ x-runtime:
131
+ - '26'
132
+ cache-control:
100
133
  - private, max-age=0, must-revalidate
101
- status:
102
- - "200"
103
- vary:
134
+ content-length:
135
+ - '466'
136
+ status:
137
+ - '200'
138
+ vary:
104
139
  - Accept-Encoding
105
- body: "{\"id\":\"img-ymfuq\",\"resource_type\":\"image\",\"url\":\"https://api.gb1s.brightbox.com/1.0/images/img-ymfuq\",\"name\":\"Ubuntu Lucid 10.04 server\",\"created_at\":\"2011-06-01T15:43:38Z\",\"public\":true,\"disk_size\":538,\"official\":true,\"arch\":\"i686\",\"compatibility_mode\":false,\"source_type\":\"upload\",\"description\":\"login: ubuntu using stored ssh key\",\"source\":\"lucid.img\",\"status\":\"available\",\"owner\":\"acc-kg71m\",\"virtual_size\":1409,\"ancestor\":null}"
140
+ content-type:
141
+ - application/json; charset=utf-8
142
+ body: ! '{"id":"img-ymfuq","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-ymfuq","name":"Ubuntu
143
+ Lucid 10.04 server","created_at":"2011-06-01T15:43:38Z","public":true,"disk_size":538,"official":true,"arch":"i686","username":"ubuntu","compatibility_mode":false,"source_type":"upload","description":"login:
144
+ ubuntu using stored ssh key","source":"lucid.img","status":"available","owner":"acc-kg71m","min_ram":null,"virtual_size":1409,"ancestor":null}'
106
145
  http_version:
107
- - !ruby/struct:VCR::HTTPInteraction
108
- request: !ruby/struct:VCR::Request
146
+ - !ruby/struct:VCR::HTTPInteraction
147
+ request: !ruby/struct:VCR::Request
109
148
  method: GET
110
149
  uri: https://api.gb1s.brightbox.com:443/1.0/images/img-ymfuq
111
150
  body:
112
- headers:
113
- content-type:
151
+ headers:
152
+ authorization:
153
+ - OAuth f9f6a5d76a65da83199db1cbdb73482ea6327f80
154
+ content-type:
114
155
  - application/json
115
- authorization:
116
- - OAuth e717de9faa2aaeacd8b55c38def2c53e72b42f06
117
- response: !ruby/struct:VCR::Response
118
- status: !ruby/struct:VCR::ResponseStatus
156
+ response: !ruby/struct:VCR::Response
157
+ status: !ruby/struct:VCR::ResponseStatus
119
158
  code: 200
120
159
  message:
121
- headers:
122
- etag:
123
- - "\"6e6f8f223836a3fe402757fe35982a9d\""
124
- content-type:
125
- - application/json; charset=utf-8
126
- server:
160
+ headers:
161
+ date:
162
+ - Thu, 23 Feb 2012 11:27:44 GMT
163
+ server:
127
164
  - Apache
128
- date:
129
- - Fri, 14 Oct 2011 13:12:57 GMT
130
- x-runtime:
131
- - "12"
132
- content-length:
133
- - "432"
134
- cache-control:
165
+ etag:
166
+ - ! '"66c3c1ee5a081759ba5daa44354de1aa"'
167
+ x-runtime:
168
+ - '24'
169
+ cache-control:
135
170
  - private, max-age=0, must-revalidate
136
- status:
137
- - "200"
138
- vary:
171
+ content-length:
172
+ - '466'
173
+ status:
174
+ - '200'
175
+ vary:
139
176
  - Accept-Encoding
140
- body: "{\"id\":\"img-ymfuq\",\"resource_type\":\"image\",\"url\":\"https://api.gb1s.brightbox.com/1.0/images/img-ymfuq\",\"name\":\"Ubuntu Lucid 10.04 server\",\"created_at\":\"2011-06-01T15:43:38Z\",\"public\":true,\"disk_size\":538,\"official\":true,\"arch\":\"i686\",\"compatibility_mode\":false,\"source_type\":\"upload\",\"description\":\"login: ubuntu using stored ssh key\",\"source\":\"lucid.img\",\"status\":\"available\",\"owner\":\"acc-kg71m\",\"virtual_size\":1409,\"ancestor\":null}"
177
+ content-type:
178
+ - application/json; charset=utf-8
179
+ body: ! '{"id":"img-ymfuq","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-ymfuq","name":"Ubuntu
180
+ Lucid 10.04 server","created_at":"2011-06-01T15:43:38Z","public":true,"disk_size":538,"official":true,"arch":"i686","username":"ubuntu","compatibility_mode":false,"source_type":"upload","description":"login:
181
+ ubuntu using stored ssh key","source":"lucid.img","status":"available","owner":"acc-kg71m","min_ram":null,"virtual_size":1409,"ancestor":null}'
141
182
  http_version:
data/spec/servers_spec.rb CHANGED
@@ -19,14 +19,15 @@ describe "Server" do
19
19
  describe "Server show" do
20
20
  use_vcr_cassette('server_show')
21
21
  before do
22
- @servers = Brightbox::DetailedServer.find_or_call(["srv-7yilp"])
22
+ @servers = Brightbox::DetailedServer.find_or_call(["srv-egjzh"])
23
23
  end
24
24
  it "should show detailed attributes of a server" do
25
25
  output = capture_stdout {
26
26
  Brightbox.render_table(@servers,{:vertical => true})
27
27
  }
28
- output.should match("10.251.17.234")
28
+ output.should match("10.250.188.238")
29
29
  output.should match(/ram: 512/)
30
+ output.should match(/disk: 20480/)
30
31
  end
31
32
  end
32
33
 
data/spec/spec_helper.rb CHANGED
@@ -15,6 +15,10 @@ RSpec.configure do |config|
15
15
  config.mock_framework = :mocha
16
16
  config.extend VCR::RSpec::Macros
17
17
  config.include CommonHelpers
18
+ config.before {
19
+ test_config = File.join(File.dirname(__FILE__),"brightbox")
20
+ Brightbox::BBConfig.any_instance.stubs(:default_config_dir).returns(test_config)
21
+ }
18
22
  end
19
23
 
20
24
  VCR.config do |c|
metadata CHANGED
@@ -1,239 +1,174 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: brightbox-cli
3
- version: !ruby/object:Gem::Version
4
- hash: 89
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 17
9
- - 1
10
- version: 0.17.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.17.2
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - John Leach
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-02-03 00:00:00 +00:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-03-06 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: json
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70240587891900 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
18
+ requirements:
27
19
  - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 5
30
- segments:
31
- - 1
32
- - 5
33
- - 3
20
+ - !ruby/object:Gem::Version
34
21
  version: 1.5.3
35
22
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: hirb
39
23
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70240587891900
25
+ - !ruby/object:Gem::Dependency
26
+ name: builder
27
+ requirement: &70240587889940 !ruby/object:Gem::Requirement
41
28
  none: false
42
- requirements:
43
- - - "="
44
- - !ruby/object:Gem::Version
45
- hash: 25
46
- segments:
47
- - 0
48
- - 3
49
- - 5
50
- version: 0.3.5
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
51
33
  type: :runtime
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: formatador
55
34
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70240587889940
36
+ - !ruby/object:Gem::Dependency
37
+ name: excon
38
+ requirement: &70240587904940 !ruby/object:Gem::Requirement
57
39
  none: false
58
- requirements:
40
+ requirements:
59
41
  - - ~>
60
- - !ruby/object:Gem::Version
61
- hash: 23
62
- segments:
63
- - 0
64
- - 2
65
- - 0
66
- version: 0.2.0
42
+ - !ruby/object:Gem::Version
43
+ version: 0.9.0
67
44
  type: :runtime
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
70
- name: excon
71
45
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *70240587904940
47
+ - !ruby/object:Gem::Dependency
48
+ name: formatador
49
+ requirement: &70240587904360 !ruby/object:Gem::Requirement
73
50
  none: false
74
- requirements:
51
+ requirements:
75
52
  - - ~>
76
- - !ruby/object:Gem::Version
77
- hash: 5
78
- segments:
79
- - 0
80
- - 6
81
- - 1
82
- version: 0.6.1
53
+ - !ruby/object:Gem::Version
54
+ version: 0.2.0
83
55
  type: :runtime
84
- version_requirements: *id004
85
- - !ruby/object:Gem::Dependency
86
- name: builder
87
56
  prerelease: false
88
- requirement: &id005 !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- hash: 3
94
- segments:
95
- - 0
96
- version: "0"
97
- type: :runtime
98
- version_requirements: *id005
99
- - !ruby/object:Gem::Dependency
57
+ version_requirements: *70240587904360
58
+ - !ruby/object:Gem::Dependency
100
59
  name: mime-types
101
- prerelease: false
102
- requirement: &id006 !ruby/object:Gem::Requirement
60
+ requirement: &70240587903660 !ruby/object:Gem::Requirement
103
61
  none: false
104
- requirements:
105
- - - ">="
106
- - !ruby/object:Gem::Version
107
- hash: 3
108
- segments:
109
- - 0
110
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
111
66
  type: :runtime
112
- version_requirements: *id006
113
- - !ruby/object:Gem::Dependency
114
- name: net-ssh
115
67
  prerelease: false
116
- requirement: &id007 !ruby/object:Gem::Requirement
68
+ version_requirements: *70240587903660
69
+ - !ruby/object:Gem::Dependency
70
+ name: net-ssh
71
+ requirement: &70240587902360 !ruby/object:Gem::Requirement
117
72
  none: false
118
- requirements:
119
- - - ~>
120
- - !ruby/object:Gem::Version
121
- hash: 5
122
- segments:
123
- - 2
124
- - 2
125
- - 1
126
- version: 2.2.1
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: 2.1.3
127
77
  type: :runtime
128
- version_requirements: *id007
129
- - !ruby/object:Gem::Dependency
130
- name: net-scp
131
78
  prerelease: false
132
- requirement: &id008 !ruby/object:Gem::Requirement
79
+ version_requirements: *70240587902360
80
+ - !ruby/object:Gem::Dependency
81
+ name: net-scp
82
+ requirement: &70240587899840 !ruby/object:Gem::Requirement
133
83
  none: false
134
- requirements:
84
+ requirements:
135
85
  - - ~>
136
- - !ruby/object:Gem::Version
137
- hash: 31
138
- segments:
139
- - 1
140
- - 0
141
- - 4
86
+ - !ruby/object:Gem::Version
142
87
  version: 1.0.4
143
88
  type: :runtime
144
- version_requirements: *id008
145
- - !ruby/object:Gem::Dependency
146
- name: nokogiri
147
89
  prerelease: false
148
- requirement: &id009 !ruby/object:Gem::Requirement
90
+ version_requirements: *70240587899840
91
+ - !ruby/object:Gem::Dependency
92
+ name: nokogiri
93
+ requirement: &70240587898480 !ruby/object:Gem::Requirement
149
94
  none: false
150
- requirements:
151
- - - ~>
152
- - !ruby/object:Gem::Version
153
- hash: 3
154
- segments:
155
- - 1
156
- - 5
157
- - 0
158
- version: 1.5.0
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: 1.4.0
159
99
  type: :runtime
160
- version_requirements: *id009
161
- - !ruby/object:Gem::Dependency
100
+ prerelease: false
101
+ version_requirements: *70240587898480
102
+ - !ruby/object:Gem::Dependency
162
103
  name: ruby-hmac
104
+ requirement: &70240587898020 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :runtime
163
111
  prerelease: false
164
- requirement: &id010 !ruby/object:Gem::Requirement
112
+ version_requirements: *70240587898020
113
+ - !ruby/object:Gem::Dependency
114
+ name: hirb
115
+ requirement: &70240587897180 !ruby/object:Gem::Requirement
165
116
  none: false
166
- requirements:
167
- - - ">="
168
- - !ruby/object:Gem::Version
169
- hash: 3
170
- segments:
171
- - 0
172
- version: "0"
117
+ requirements:
118
+ - - ~>
119
+ - !ruby/object:Gem::Version
120
+ version: 0.6.0
173
121
  type: :runtime
174
- version_requirements: *id010
175
- - !ruby/object:Gem::Dependency
176
- name: rake
177
122
  prerelease: false
178
- requirement: &id011 !ruby/object:Gem::Requirement
123
+ version_requirements: *70240587897180
124
+ - !ruby/object:Gem::Dependency
125
+ name: rake
126
+ requirement: &70240587912980 !ruby/object:Gem::Requirement
179
127
  none: false
180
- requirements:
128
+ requirements:
181
129
  - - ~>
182
- - !ruby/object:Gem::Version
183
- hash: 63
184
- segments:
185
- - 0
186
- - 8
187
- - 0
130
+ - !ruby/object:Gem::Version
188
131
  version: 0.8.0
189
132
  type: :development
190
- version_requirements: *id011
191
- - !ruby/object:Gem::Dependency
192
- name: vcr
193
133
  prerelease: false
194
- requirement: &id012 !ruby/object:Gem::Requirement
134
+ version_requirements: *70240587912980
135
+ - !ruby/object:Gem::Dependency
136
+ name: vcr
137
+ requirement: &70240587912480 !ruby/object:Gem::Requirement
195
138
  none: false
196
- requirements:
197
- - - ">="
198
- - !ruby/object:Gem::Version
199
- hash: 3
200
- segments:
201
- - 0
202
- version: "0"
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
203
143
  type: :development
204
- version_requirements: *id012
205
- - !ruby/object:Gem::Dependency
206
- name: rspec
207
144
  prerelease: false
208
- requirement: &id013 !ruby/object:Gem::Requirement
145
+ version_requirements: *70240587912480
146
+ - !ruby/object:Gem::Dependency
147
+ name: rspec
148
+ requirement: &70240587911860 !ruby/object:Gem::Requirement
209
149
  none: false
210
- requirements:
211
- - - ">="
212
- - !ruby/object:Gem::Version
213
- hash: 3
214
- segments:
215
- - 0
216
- version: "0"
150
+ requirements:
151
+ - - ! '>='
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
217
154
  type: :development
218
- version_requirements: *id013
219
- - !ruby/object:Gem::Dependency
220
- name: mocha
221
155
  prerelease: false
222
- requirement: &id014 !ruby/object:Gem::Requirement
156
+ version_requirements: *70240587911860
157
+ - !ruby/object:Gem::Dependency
158
+ name: mocha
159
+ requirement: &70240587911160 !ruby/object:Gem::Requirement
223
160
  none: false
224
- requirements:
225
- - - ">="
226
- - !ruby/object:Gem::Version
227
- hash: 3
228
- segments:
229
- - 0
230
- version: "0"
161
+ requirements:
162
+ - - ! '>='
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
231
165
  type: :development
232
- version_requirements: *id014
166
+ prerelease: false
167
+ version_requirements: *70240587911160
233
168
  description: Scripts to interact with the Brightbox cloud API
234
- email:
169
+ email:
235
170
  - john@brightbox.co.uk
236
- executables:
171
+ executables:
237
172
  - brightbox-accounts
238
173
  - brightbox-cloudips
239
174
  - brightbox-config
@@ -247,10 +182,8 @@ executables:
247
182
  - brightbox-users
248
183
  - brightbox-zones
249
184
  extensions: []
250
-
251
185
  extra_rdoc_files: []
252
-
253
- files:
186
+ files:
254
187
  - .gitignore
255
188
  - Gemfile
256
189
  - LICENSE
@@ -2159,14 +2092,6 @@ files:
2159
2092
  - lib/brightbox-cli/vendor/fog/tests/openstack/requests/compute/server_tests.rb
2160
2093
  - lib/brightbox-cli/vendor/fog/tests/rackspace/helper.rb
2161
2094
  - lib/brightbox-cli/vendor/fog/tests/rackspace/load_balancer_tests.rb
2162
- - lib/brightbox-cli/vendor/fog/tests/rackspace/models/access_list_tests.rb
2163
- - lib/brightbox-cli/vendor/fog/tests/rackspace/models/access_lists_tests.rb
2164
- - lib/brightbox-cli/vendor/fog/tests/rackspace/models/load_balancer_tests.rb
2165
- - lib/brightbox-cli/vendor/fog/tests/rackspace/models/load_balancers_tests.rb
2166
- - lib/brightbox-cli/vendor/fog/tests/rackspace/models/node_tests.rb
2167
- - lib/brightbox-cli/vendor/fog/tests/rackspace/models/nodes_tests.rb
2168
- - lib/brightbox-cli/vendor/fog/tests/rackspace/models/virtual_ip_tests.rb
2169
- - lib/brightbox-cli/vendor/fog/tests/rackspace/models/virtual_ips_tests.rb
2170
2095
  - lib/brightbox-cli/vendor/fog/tests/rackspace/requests/compute/address_tests.rb
2171
2096
  - lib/brightbox-cli/vendor/fog/tests/rackspace/requests/compute/flavor_tests.rb
2172
2097
  - lib/brightbox-cli/vendor/fog/tests/rackspace/requests/compute/helper.rb
@@ -2313,41 +2238,31 @@ files:
2313
2238
  - spec/spec_helper.rb
2314
2239
  - spec/support/common_helpers.rb
2315
2240
  - tools/bash_completion_script
2316
- has_rdoc: true
2317
2241
  homepage: http://docs.brightbox.com/cli
2318
2242
  licenses: []
2319
-
2320
2243
  post_install_message:
2321
2244
  rdoc_options: []
2322
-
2323
- require_paths:
2245
+ require_paths:
2324
2246
  - lib
2325
- required_ruby_version: !ruby/object:Gem::Requirement
2247
+ required_ruby_version: !ruby/object:Gem::Requirement
2326
2248
  none: false
2327
- requirements:
2328
- - - ">="
2329
- - !ruby/object:Gem::Version
2330
- hash: 3
2331
- segments:
2332
- - 0
2333
- version: "0"
2334
- required_rubygems_version: !ruby/object:Gem::Requirement
2249
+ requirements:
2250
+ - - ! '>='
2251
+ - !ruby/object:Gem::Version
2252
+ version: '0'
2253
+ required_rubygems_version: !ruby/object:Gem::Requirement
2335
2254
  none: false
2336
- requirements:
2337
- - - ">="
2338
- - !ruby/object:Gem::Version
2339
- hash: 3
2340
- segments:
2341
- - 0
2342
- version: "0"
2255
+ requirements:
2256
+ - - ! '>='
2257
+ - !ruby/object:Gem::Version
2258
+ version: '0'
2343
2259
  requirements: []
2344
-
2345
2260
  rubyforge_project: brightbox-cli
2346
- rubygems_version: 1.3.7
2261
+ rubygems_version: 1.8.17
2347
2262
  signing_key:
2348
2263
  specification_version: 3
2349
2264
  summary: The Brightbox cloud management system
2350
- test_files:
2265
+ test_files:
2351
2266
  - spec/brightbox/config.example
2352
2267
  - spec/cloud_ips_spec.rb
2353
2268
  - spec/firewall_policy_spec.rb