fog-xenserver 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (259) hide show
  1. checksums.yaml +7 -7
  2. data/.rubocop +11 -14
  3. data/lib/fog/bin/xenserver.rb +1 -1
  4. data/lib/fog/compute/xen_server.rb +7 -7
  5. data/lib/fog/compute/xen_server/models.rb +74 -74
  6. data/lib/fog/compute/xen_server/models/instance_methods.rb +1 -1
  7. data/lib/fog/compute/xen_server/models/network.rb +2 -2
  8. data/lib/fog/compute/xen_server/models/server.rb +31 -31
  9. data/lib/fog/compute/xen_server/models/servers.rb +5 -5
  10. data/lib/fog/compute/xen_server/models/storage_repository.rb +3 -3
  11. data/lib/fog/compute/xen_server/models/vbd.rb +7 -7
  12. data/lib/fog/compute/xen_server/models/vdi.rb +3 -3
  13. data/lib/fog/compute/xen_server/models/vif.rb +5 -5
  14. data/lib/fog/compute/xen_server/requests/add_ipv4_allowed_vif.rb +1 -1
  15. data/lib/fog/compute/xen_server/requests/add_ipv6_allowed_vif.rb +1 -1
  16. data/lib/fog/compute/xen_server/requests/add_to_vcpus_params_live_server.rb +1 -1
  17. data/lib/fog/compute/xen_server/requests/apply_edition_host.rb +1 -1
  18. data/lib/fog/compute/xen_server/requests/apply_edition_pool.rb +1 -1
  19. data/lib/fog/compute/xen_server/requests/assert_agile_server.rb +1 -1
  20. data/lib/fog/compute/xen_server/requests/assert_attachable_vbd.rb +1 -1
  21. data/lib/fog/compute/xen_server/requests/assert_can_be_recovered_server.rb +1 -1
  22. data/lib/fog/compute/xen_server/requests/assert_can_boot_here_server.rb +1 -1
  23. data/lib/fog/compute/xen_server/requests/assert_can_evacuate_host.rb +1 -1
  24. data/lib/fog/compute/xen_server/requests/assert_can_host_ha_statefile_sr.rb +1 -1
  25. data/lib/fog/compute/xen_server/requests/assert_can_migrate_server.rb +1 -1
  26. data/lib/fog/compute/xen_server/requests/assert_operation_valid_server.rb +1 -1
  27. data/lib/fog/compute/xen_server/requests/assert_supports_database_replication_sr.rb +1 -1
  28. data/lib/fog/compute/xen_server/requests/backup_rrds_host.rb +1 -1
  29. data/lib/fog/compute/xen_server/requests/bugreport_upload_host.rb +1 -1
  30. data/lib/fog/compute/xen_server/requests/builtin_templates.rb +1 -1
  31. data/lib/fog/compute/xen_server/requests/call_plugin_host.rb +1 -1
  32. data/lib/fog/compute/xen_server/requests/certificate_install_pool.rb +1 -1
  33. data/lib/fog/compute/xen_server/requests/certificate_list_pool.rb +1 -1
  34. data/lib/fog/compute/xen_server/requests/certificate_sync_pool.rb +1 -1
  35. data/lib/fog/compute/xen_server/requests/certificate_uninstall_pool.rb +1 -1
  36. data/lib/fog/compute/xen_server/requests/checkpoint_server.rb +1 -1
  37. data/lib/fog/compute/xen_server/requests/clean_reboot_server.rb +1 -1
  38. data/lib/fog/compute/xen_server/requests/clean_shutdown_server.rb +1 -1
  39. data/lib/fog/compute/xen_server/requests/clone_server.rb +1 -1
  40. data/lib/fog/compute/xen_server/requests/clone_vdi.rb +1 -1
  41. data/lib/fog/compute/xen_server/requests/compute_free_memory_host.rb +1 -1
  42. data/lib/fog/compute/xen_server/requests/compute_memory_overhead_host.rb +1 -1
  43. data/lib/fog/compute/xen_server/requests/compute_memory_overhead_server.rb +1 -1
  44. data/lib/fog/compute/xen_server/requests/copy_bios_strings_server.rb +1 -1
  45. data/lib/fog/compute/xen_server/requests/copy_server.rb +1 -1
  46. data/lib/fog/compute/xen_server/requests/copy_vdi.rb +1 -1
  47. data/lib/fog/compute/xen_server/requests/create_network.rb +1 -1
  48. data/lib/fog/compute/xen_server/requests/create_new_blob_host.rb +1 -1
  49. data/lib/fog/compute/xen_server/requests/create_new_blob_network.rb +1 -1
  50. data/lib/fog/compute/xen_server/requests/create_new_blob_pool.rb +1 -1
  51. data/lib/fog/compute/xen_server/requests/create_new_blob_server.rb +1 -1
  52. data/lib/fog/compute/xen_server/requests/create_new_blob_sr.rb +1 -1
  53. data/lib/fog/compute/xen_server/requests/create_server.rb +1 -1
  54. data/lib/fog/compute/xen_server/requests/create_sr.rb +1 -1
  55. data/lib/fog/compute/xen_server/requests/create_vbd.rb +1 -1
  56. data/lib/fog/compute/xen_server/requests/create_vdi.rb +1 -1
  57. data/lib/fog/compute/xen_server/requests/create_vif.rb +1 -1
  58. data/lib/fog/compute/xen_server/requests/create_vlan.rb +1 -1
  59. data/lib/fog/compute/xen_server/requests/create_vlan_from_pif_pool.rb +1 -1
  60. data/lib/fog/compute/xen_server/requests/create_vlan_pool.rb +1 -1
  61. data/lib/fog/compute/xen_server/requests/crl_install_pool.rb +1 -1
  62. data/lib/fog/compute/xen_server/requests/crl_list_pool.rb +1 -1
  63. data/lib/fog/compute/xen_server/requests/crl_uninstall_pool.rb +1 -1
  64. data/lib/fog/compute/xen_server/requests/custom_templates.rb +1 -1
  65. data/lib/fog/compute/xen_server/requests/db_forget_pif.rb +1 -1
  66. data/lib/fog/compute/xen_server/requests/db_forget_vdi.rb +1 -1
  67. data/lib/fog/compute/xen_server/requests/db_introduce_pif.rb +1 -1
  68. data/lib/fog/compute/xen_server/requests/db_introduce_vdi.rb +1 -1
  69. data/lib/fog/compute/xen_server/requests/declare_dead_host.rb +1 -1
  70. data/lib/fog/compute/xen_server/requests/designate_new_master_pool.rb +1 -1
  71. data/lib/fog/compute/xen_server/requests/detect_nonhomogeneous_external_auth_pool.rb +1 -1
  72. data/lib/fog/compute/xen_server/requests/disable_database_replication_sr.rb +1 -1
  73. data/lib/fog/compute/xen_server/requests/disable_external_auth_host.rb +1 -1
  74. data/lib/fog/compute/xen_server/requests/disable_external_auth_pool.rb +1 -1
  75. data/lib/fog/compute/xen_server/requests/disable_ha_pool.rb +1 -1
  76. data/lib/fog/compute/xen_server/requests/disable_host.rb +1 -1
  77. data/lib/fog/compute/xen_server/requests/disable_local_storage_caching_host.rb +1 -1
  78. data/lib/fog/compute/xen_server/requests/disable_local_storage_caching_pool.rb +1 -1
  79. data/lib/fog/compute/xen_server/requests/disable_redo_log_pool.rb +1 -1
  80. data/lib/fog/compute/xen_server/requests/dmesg_clear_host.rb +1 -1
  81. data/lib/fog/compute/xen_server/requests/dmesg_host.rb +1 -1
  82. data/lib/fog/compute/xen_server/requests/eject_pool.rb +1 -1
  83. data/lib/fog/compute/xen_server/requests/eject_vbd.rb +1 -1
  84. data/lib/fog/compute/xen_server/requests/emergency_ha_disable_host.rb +1 -1
  85. data/lib/fog/compute/xen_server/requests/emergency_reset_master_pool.rb +1 -1
  86. data/lib/fog/compute/xen_server/requests/emergency_transition_to_master_pool.rb +1 -1
  87. data/lib/fog/compute/xen_server/requests/enable_database_replication_sr.rb +1 -1
  88. data/lib/fog/compute/xen_server/requests/enable_external_auth_host.rb +1 -1
  89. data/lib/fog/compute/xen_server/requests/enable_external_auth_pool.rb +1 -1
  90. data/lib/fog/compute/xen_server/requests/enable_ha_pool.rb +1 -1
  91. data/lib/fog/compute/xen_server/requests/enable_host.rb +1 -1
  92. data/lib/fog/compute/xen_server/requests/enable_local_storage_caching_host.rb +1 -1
  93. data/lib/fog/compute/xen_server/requests/enable_local_storage_caching_pool.rb +1 -1
  94. data/lib/fog/compute/xen_server/requests/enable_redo_log_pool.rb +1 -1
  95. data/lib/fog/compute/xen_server/requests/evacuate_host.rb +1 -1
  96. data/lib/fog/compute/xen_server/requests/forget_data_source_archives_host.rb +1 -1
  97. data/lib/fog/compute/xen_server/requests/forget_data_source_archives_server.rb +1 -1
  98. data/lib/fog/compute/xen_server/requests/forget_pif.rb +1 -1
  99. data/lib/fog/compute/xen_server/requests/forget_sr.rb +1 -1
  100. data/lib/fog/compute/xen_server/requests/forget_vdi.rb +1 -1
  101. data/lib/fog/compute/xen_server/requests/get_allowed_vbd_devices_server.rb +1 -1
  102. data/lib/fog/compute/xen_server/requests/get_allowed_vif_devices_server.rb +1 -1
  103. data/lib/fog/compute/xen_server/requests/get_boot_record_server.rb +1 -1
  104. data/lib/fog/compute/xen_server/requests/get_data_sources_host.rb +1 -1
  105. data/lib/fog/compute/xen_server/requests/get_data_sources_server.rb +1 -1
  106. data/lib/fog/compute/xen_server/requests/get_license_state_pool.rb +1 -1
  107. data/lib/fog/compute/xen_server/requests/get_log_host.rb +1 -1
  108. data/lib/fog/compute/xen_server/requests/get_management_interface_host.rb +1 -1
  109. data/lib/fog/compute/xen_server/requests/get_possible_hosts_server.rb +1 -1
  110. data/lib/fog/compute/xen_server/requests/get_server_certificate_host.rb +1 -1
  111. data/lib/fog/compute/xen_server/requests/get_server_localtime_host.rb +1 -1
  112. data/lib/fog/compute/xen_server/requests/get_servertime_host.rb +1 -1
  113. data/lib/fog/compute/xen_server/requests/get_supported_types_sr.rb +1 -1
  114. data/lib/fog/compute/xen_server/requests/get_system_status_capabilities_host.rb +1 -1
  115. data/lib/fog/compute/xen_server/requests/get_vms_which_prevent_evacuation_host.rb +1 -1
  116. data/lib/fog/compute/xen_server/requests/ha_compute_hypothetical_max_host_failures_to_tolerate_pool.rb +1 -1
  117. data/lib/fog/compute/xen_server/requests/ha_compute_max_host_failures_to_tolerate_pool.rb +1 -1
  118. data/lib/fog/compute/xen_server/requests/ha_compute_vm_failover_plan_pool.rb +1 -1
  119. data/lib/fog/compute/xen_server/requests/ha_failover_plan_exists_pool.rb +1 -1
  120. data/lib/fog/compute/xen_server/requests/ha_prevent_restarts_for_pool.rb +1 -1
  121. data/lib/fog/compute/xen_server/requests/hard_reboot_server.rb +1 -1
  122. data/lib/fog/compute/xen_server/requests/hard_shutdown_server.rb +1 -1
  123. data/lib/fog/compute/xen_server/requests/import_convert_server.rb +1 -1
  124. data/lib/fog/compute/xen_server/requests/insert_vbd.rb +1 -1
  125. data/lib/fog/compute/xen_server/requests/introduce_pif.rb +1 -1
  126. data/lib/fog/compute/xen_server/requests/introduce_sr.rb +1 -1
  127. data/lib/fog/compute/xen_server/requests/introduce_vdi.rb +1 -1
  128. data/lib/fog/compute/xen_server/requests/join_force_pool.rb +1 -1
  129. data/lib/fog/compute/xen_server/requests/join_pool.rb +1 -1
  130. data/lib/fog/compute/xen_server/requests/list_methods_host.rb +1 -1
  131. data/lib/fog/compute/xen_server/requests/local_management_reconfigure_host.rb +1 -1
  132. data/lib/fog/compute/xen_server/requests/management_disable_host.rb +1 -1
  133. data/lib/fog/compute/xen_server/requests/management_reconfigure_host.rb +1 -1
  134. data/lib/fog/compute/xen_server/requests/maximise_memory_server.rb +1 -1
  135. data/lib/fog/compute/xen_server/requests/migrate_receive_host.rb +1 -1
  136. data/lib/fog/compute/xen_server/requests/migrate_send_server.rb +1 -1
  137. data/lib/fog/compute/xen_server/requests/open_database_vdi.rb +1 -1
  138. data/lib/fog/compute/xen_server/requests/pause_server.rb +1 -1
  139. data/lib/fog/compute/xen_server/requests/plug_pbd.rb +1 -1
  140. data/lib/fog/compute/xen_server/requests/plug_pif.rb +1 -1
  141. data/lib/fog/compute/xen_server/requests/plug_vbd.rb +1 -1
  142. data/lib/fog/compute/xen_server/requests/plug_vif.rb +1 -1
  143. data/lib/fog/compute/xen_server/requests/pool_migrate_server.rb +1 -1
  144. data/lib/fog/compute/xen_server/requests/pool_migrate_vdi.rb +1 -1
  145. data/lib/fog/compute/xen_server/requests/power_on_host.rb +1 -1
  146. data/lib/fog/compute/xen_server/requests/power_state_reset_server.rb +1 -1
  147. data/lib/fog/compute/xen_server/requests/probe_sr.rb +1 -1
  148. data/lib/fog/compute/xen_server/requests/provision_server.rb +1 -1
  149. data/lib/fog/compute/xen_server/requests/query_data_source_host.rb +1 -1
  150. data/lib/fog/compute/xen_server/requests/query_data_source_server.rb +1 -1
  151. data/lib/fog/compute/xen_server/requests/query_services_server.rb +1 -1
  152. data/lib/fog/compute/xen_server/requests/read_database_pool_uuid_vdi.rb +1 -1
  153. data/lib/fog/compute/xen_server/requests/reboot_host.rb +1 -1
  154. data/lib/fog/compute/xen_server/requests/reboot_server.rb +3 -3
  155. data/lib/fog/compute/xen_server/requests/reconfigure_ip_pif.rb +1 -1
  156. data/lib/fog/compute/xen_server/requests/reconfigure_ipv6_pif.rb +1 -1
  157. data/lib/fog/compute/xen_server/requests/record_data_source_host.rb +1 -1
  158. data/lib/fog/compute/xen_server/requests/record_data_source_server.rb +1 -1
  159. data/lib/fog/compute/xen_server/requests/recover_server.rb +1 -1
  160. data/lib/fog/compute/xen_server/requests/recover_slaves_pool.rb +1 -1
  161. data/lib/fog/compute/xen_server/requests/refresh_pack_info_host.rb +1 -1
  162. data/lib/fog/compute/xen_server/requests/remove_ipv4_allowed_vif.rb +1 -1
  163. data/lib/fog/compute/xen_server/requests/remove_ipv6_allowed_vif.rb +1 -1
  164. data/lib/fog/compute/xen_server/requests/reset_cpu_features_host.rb +1 -1
  165. data/lib/fog/compute/xen_server/requests/resize_online_vdi.rb +1 -1
  166. data/lib/fog/compute/xen_server/requests/resize_vdi.rb +1 -1
  167. data/lib/fog/compute/xen_server/requests/restart_agent_host.rb +1 -1
  168. data/lib/fog/compute/xen_server/requests/resume_on_server.rb +1 -1
  169. data/lib/fog/compute/xen_server/requests/resume_server.rb +1 -1
  170. data/lib/fog/compute/xen_server/requests/revert_server.rb +1 -1
  171. data/lib/fog/compute/xen_server/requests/revert_to_server.rb +2 -2
  172. data/lib/fog/compute/xen_server/requests/scan_pif.rb +1 -1
  173. data/lib/fog/compute/xen_server/requests/scan_sr.rb +1 -1
  174. data/lib/fog/compute/xen_server/requests/send_debug_keys_host.rb +1 -1
  175. data/lib/fog/compute/xen_server/requests/send_sysrq_server.rb +1 -1
  176. data/lib/fog/compute/xen_server/requests/send_test_post_pool.rb +1 -1
  177. data/lib/fog/compute/xen_server/requests/send_trigger_server.rb +1 -1
  178. data/lib/fog/compute/xen_server/requests/set_affinity_server.rb +1 -1
  179. data/lib/fog/compute/xen_server/requests/set_allow_caching_vdi.rb +1 -1
  180. data/lib/fog/compute/xen_server/requests/set_appliance_server.rb +1 -1
  181. data/lib/fog/compute/xen_server/requests/set_attribute.rb +1 -1
  182. data/lib/fog/compute/xen_server/requests/set_cpu_features_host.rb +1 -1
  183. data/lib/fog/compute/xen_server/requests/set_default_locking_mode_network.rb +1 -1
  184. data/lib/fog/compute/xen_server/requests/set_device_config_pbd.rb +1 -1
  185. data/lib/fog/compute/xen_server/requests/set_ha_host_failures_to_tolerate_pool.rb +1 -1
  186. data/lib/fog/compute/xen_server/requests/set_ha_restart_priority_server.rb +1 -1
  187. data/lib/fog/compute/xen_server/requests/set_hostname_live_host.rb +1 -1
  188. data/lib/fog/compute/xen_server/requests/set_hvm_shadow_multiplier_server.rb +1 -1
  189. data/lib/fog/compute/xen_server/requests/set_ipv4_allowed_vif.rb +1 -1
  190. data/lib/fog/compute/xen_server/requests/set_ipv6_allowed_vif.rb +1 -1
  191. data/lib/fog/compute/xen_server/requests/set_is_a_snapshot_vdi.rb +1 -1
  192. data/lib/fog/compute/xen_server/requests/set_locking_mode_vif.rb +1 -1
  193. data/lib/fog/compute/xen_server/requests/set_managed_vdi.rb +1 -1
  194. data/lib/fog/compute/xen_server/requests/set_memory_dynamic_max_server.rb +1 -1
  195. data/lib/fog/compute/xen_server/requests/set_memory_dynamic_min_server.rb +1 -1
  196. data/lib/fog/compute/xen_server/requests/set_memory_dynamic_range_server.rb +1 -1
  197. data/lib/fog/compute/xen_server/requests/set_memory_limits_server.rb +1 -1
  198. data/lib/fog/compute/xen_server/requests/set_memory_static_max_server.rb +1 -1
  199. data/lib/fog/compute/xen_server/requests/set_memory_static_min_server.rb +1 -1
  200. data/lib/fog/compute/xen_server/requests/set_memory_static_range_server.rb +1 -1
  201. data/lib/fog/compute/xen_server/requests/set_metadata_of_pool_vdi.rb +1 -1
  202. data/lib/fog/compute/xen_server/requests/set_missing_vdi.rb +1 -1
  203. data/lib/fog/compute/xen_server/requests/set_name_description_sr.rb +1 -1
  204. data/lib/fog/compute/xen_server/requests/set_name_description_vdi.rb +1 -1
  205. data/lib/fog/compute/xen_server/requests/set_name_label_sr.rb +1 -1
  206. data/lib/fog/compute/xen_server/requests/set_name_label_vdi.rb +1 -1
  207. data/lib/fog/compute/xen_server/requests/set_on_boot_vdi.rb +1 -1
  208. data/lib/fog/compute/xen_server/requests/set_order_server.rb +1 -1
  209. data/lib/fog/compute/xen_server/requests/set_physical_size_sr.rb +1 -1
  210. data/lib/fog/compute/xen_server/requests/set_physical_utilisation_sr.rb +1 -1
  211. data/lib/fog/compute/xen_server/requests/set_physical_utilisation_vdi.rb +1 -1
  212. data/lib/fog/compute/xen_server/requests/set_power_on_mode_host.rb +1 -1
  213. data/lib/fog/compute/xen_server/requests/set_primary_address_type_pif.rb +1 -1
  214. data/lib/fog/compute/xen_server/requests/set_protection_policy_server.rb +1 -1
  215. data/lib/fog/compute/xen_server/requests/set_read_only_vdi.rb +1 -1
  216. data/lib/fog/compute/xen_server/requests/set_shadow_multiplier_live_server.rb +1 -1
  217. data/lib/fog/compute/xen_server/requests/set_sharable_vdi.rb +1 -1
  218. data/lib/fog/compute/xen_server/requests/set_shared_sr.rb +1 -1
  219. data/lib/fog/compute/xen_server/requests/set_shutdown_delay_server.rb +1 -1
  220. data/lib/fog/compute/xen_server/requests/set_snapshot_of_vdi.rb +1 -1
  221. data/lib/fog/compute/xen_server/requests/set_snapshot_time_vdi.rb +1 -1
  222. data/lib/fog/compute/xen_server/requests/set_start_delay_server.rb +1 -1
  223. data/lib/fog/compute/xen_server/requests/set_suspend_vdi_server.rb +1 -1
  224. data/lib/fog/compute/xen_server/requests/set_vcpus_at_startup_server.rb +1 -1
  225. data/lib/fog/compute/xen_server/requests/set_vcpus_max_server.rb +1 -1
  226. data/lib/fog/compute/xen_server/requests/set_vcpus_number_live_server.rb +1 -1
  227. data/lib/fog/compute/xen_server/requests/set_virtual_allocation_sr.rb +1 -1
  228. data/lib/fog/compute/xen_server/requests/set_virtual_size_vdi.rb +1 -1
  229. data/lib/fog/compute/xen_server/requests/set_vswitch_controller_pool.rb +1 -1
  230. data/lib/fog/compute/xen_server/requests/shutdown_agent_host.rb +1 -1
  231. data/lib/fog/compute/xen_server/requests/shutdown_host.rb +1 -1
  232. data/lib/fog/compute/xen_server/requests/shutdown_server.rb +2 -2
  233. data/lib/fog/compute/xen_server/requests/snapshot_server.rb +1 -1
  234. data/lib/fog/compute/xen_server/requests/snapshot_vdi.rb +1 -1
  235. data/lib/fog/compute/xen_server/requests/snapshot_with_quiesce_server.rb +1 -1
  236. data/lib/fog/compute/xen_server/requests/start_on_server.rb +1 -1
  237. data/lib/fog/compute/xen_server/requests/start_server.rb +1 -1
  238. data/lib/fog/compute/xen_server/requests/suspend_server.rb +1 -1
  239. data/lib/fog/compute/xen_server/requests/sync_data_host.rb +1 -1
  240. data/lib/fog/compute/xen_server/requests/sync_database_pool.rb +1 -1
  241. data/lib/fog/compute/xen_server/requests/unpause_server.rb +1 -1
  242. data/lib/fog/compute/xen_server/requests/unplug_force_vbd.rb +1 -1
  243. data/lib/fog/compute/xen_server/requests/unplug_pbd.rb +1 -1
  244. data/lib/fog/compute/xen_server/requests/unplug_vbd.rb +1 -1
  245. data/lib/fog/compute/xen_server/requests/unplug_vif.rb +1 -1
  246. data/lib/fog/compute/xen_server/requests/update_sr.rb +1 -1
  247. data/lib/fog/compute/xen_server/requests/update_vdi.rb +1 -1
  248. data/lib/fog/parsers/xen_server.rb +3 -3
  249. data/lib/fog/parsers/xen_server/base.rb +1 -1
  250. data/lib/fog/parsers/xen_server/get_records.rb +1 -1
  251. data/lib/fog/xen_server/connection.rb +3 -3
  252. data/lib/fog/xen_server/invalid_login.rb +1 -1
  253. data/lib/fog/xen_server/nokogiri_stream_parser.rb +3 -3
  254. data/lib/fog/xen_server/not_found.rb +1 -1
  255. data/lib/fog/xen_server/request_failed.rb +1 -1
  256. data/lib/fog/xenserver.rb +12 -12
  257. data/lib/fog/xenserver/compute.rb +1 -0
  258. data/lib/fog/xenserver/version.rb +1 -1
  259. metadata +82 -139
@@ -3,8 +3,8 @@ module Fog
3
3
  class XenServer
4
4
  class Real
5
5
  def shutdown_server(ref, stype = false)
6
- Fog::Logger.deprecation 'Use shutdown_clean and shutdown_hard for specific shutdown.' unless stype == false
7
- @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => 'VM.shutdown' }, ref)
6
+ Fog::Logger.deprecation "Use shutdown_clean and shutdown_hard for specific shutdown." unless stype == false
7
+ @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VM.shutdown" }, ref)
8
8
  end
9
9
 
10
10
  alias_method :shutdown_vm, :shutdown_server
@@ -3,7 +3,7 @@ module Fog
3
3
  class XenServer
4
4
  class Real
5
5
  def snapshot_server(ref, new_name)
6
- @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => 'VM.snapshot' }, ref, new_name)
6
+ @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VM.snapshot" }, ref, new_name)
7
7
  end
8
8
 
9
9
  alias_method :snapshot_vm, :snapshot_server
@@ -3,7 +3,7 @@ module Fog
3
3
  class XenServer
4
4
  class Real
5
5
  def snapshot_vdi(ref, driver_params)
6
- @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => 'VDI.snapshot' }, ref, driver_params)
6
+ @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VDI.snapshot" }, ref, driver_params)
7
7
  end
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@ module Fog
3
3
  class XenServer
4
4
  class Real
5
5
  def snapshot_with_quiesce_server(ref, new_name)
6
- @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => 'VM.snapshot_with_quiesce' }, ref, new_name)
6
+ @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VM.snapshot_with_quiesce" }, ref, new_name)
7
7
  end
8
8
 
9
9
  alias_method :snapshot_with_quiesce_vm, :snapshot_with_quiesce_server
@@ -3,7 +3,7 @@ module Fog
3
3
  class XenServer
4
4
  class Real
5
5
  def start_on_server(ref, host, start_paused, force)
6
- @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => 'VM.start_on' }, ref, host, start_paused, force)
6
+ @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VM.start_on" }, ref, host, start_paused, force)
7
7
  end
8
8
 
9
9
  alias_method :start_on_vm, :start_on_server
@@ -3,7 +3,7 @@ module Fog
3
3
  class XenServer
4
4
  class Real
5
5
  def start_server(ref, start_paused = false, force = false)
6
- @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => 'VM.start' }, ref, start_paused, force)
6
+ @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VM.start" }, ref, start_paused, force)
7
7
  end
8
8
 
9
9
  alias_method :start_vm, :start_server
@@ -3,7 +3,7 @@ module Fog
3
3
  class XenServer
4
4
  class Real
5
5
  def suspend_server(ref)
6
- @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => 'VM.suspend' }, ref)
6
+ @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VM.suspend" }, ref)
7
7
  end
8
8
 
9
9
  alias_method :suspend_vm, :suspend_server
@@ -3,7 +3,7 @@ module Fog
3
3
  class XenServer
4
4
  class Real
5
5
  def sync_data_host(ref)
6
- @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => 'host.sync_data' }, ref)
6
+ @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "host.sync_data" }, ref)
7
7
  end
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@ module Fog
3
3
  class XenServer
4
4
  class Real
5
5
  def sync_database_pool
6
- @connection.request(:parser => Fog::Parsers::XenServer::Base.new, :method => 'pool.sync_database')
6
+ @connection.request(:parser => Fog::Parsers::XenServer::Base.new, :method => "pool.sync_database")
7
7
  end
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@ module Fog
3
3
  class XenServer
4
4
  class Real
5
5
  def unpause_server(ref)
6
- @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => 'VM.unpause' }, ref)
6
+ @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VM.unpause" }, ref)
7
7
  end
8
8
 
9
9
  alias_method :unpause_vm, :unpause_server
@@ -3,7 +3,7 @@ module Fog
3
3
  class XenServer
4
4
  class Real
5
5
  def unplug_force_vbd(ref)
6
- @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => 'VBD.unplug_force' }, ref)
6
+ @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VBD.unplug_force" }, ref)
7
7
  end
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@ module Fog
3
3
  class XenServer
4
4
  class Real
5
5
  def unplug_pbd(ref)
6
- @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => 'PBD.unplug' }, ref)
6
+ @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "PBD.unplug" }, ref)
7
7
  end
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@ module Fog
3
3
  class XenServer
4
4
  class Real
5
5
  def unplug_vbd(ref)
6
- @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => 'VBD.unplug' }, ref)
6
+ @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VBD.unplug" }, ref)
7
7
  end
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@ module Fog
3
3
  class XenServer
4
4
  class Real
5
5
  def unplug_vif(ref)
6
- @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => 'VIF.unplug' }, ref)
6
+ @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VIF.unplug" }, ref)
7
7
  end
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@ module Fog
3
3
  class XenServer
4
4
  class Real
5
5
  def update_sr(ref)
6
- @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => 'SR.update' }, ref)
6
+ @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "SR.update" }, ref)
7
7
  end
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@ module Fog
3
3
  class XenServer
4
4
  class Real
5
5
  def update_vdi(ref)
6
- @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => 'VDI.update' }, ref)
6
+ @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VDI.update" }, ref)
7
7
  end
8
8
  end
9
9
  end
@@ -1,8 +1,8 @@
1
1
  module Fog
2
2
  module Parsers
3
3
  module XenServer
4
- autoload :Base, 'fog/parsers/xen_server/base'
5
- autoload :GetRecords, 'fog/parsers/xen_server/get_records'
4
+ autoload :Base, "fog/parsers/xen_server/base"
5
+ autoload :GetRecords, "fog/parsers/xen_server/get_records"
6
6
  end
7
7
  end
8
- end
8
+ end
@@ -31,4 +31,4 @@ module Fog
31
31
  end
32
32
  end
33
33
  end
34
- end
34
+ end
@@ -13,4 +13,4 @@ module Fog
13
13
  end
14
14
  end
15
15
  end
16
- end
16
+ end
@@ -6,13 +6,13 @@ module Fog
6
6
  attr_reader :credentials
7
7
 
8
8
  def initialize(host, timeout)
9
- @factory = XMLRPC::Client.new(host, '/')
9
+ @factory = XMLRPC::Client.new(host, "/")
10
10
  @factory.set_parser(NokogiriStreamParser.new)
11
11
  @factory.timeout = timeout
12
12
  end
13
13
 
14
14
  def authenticate( username, password )
15
- response = @factory.call('session.login_with_password', username.to_s, password.to_s)
15
+ response = @factory.call("session.login_with_password", username.to_s, password.to_s)
16
16
  raise Fog::XenServer::InvalidLogin.new unless response["Status"] =~ /Success/
17
17
  @credentials = response["Value"]
18
18
  end
@@ -44,4 +44,4 @@ module Fog
44
44
  end
45
45
  end
46
46
  end
47
- end
47
+ end
@@ -2,4 +2,4 @@ module Fog
2
2
  module XenServer
3
3
  class InvalidLogin < Fog::Errors::Error; end
4
4
  end
5
- end
5
+ end
@@ -1,5 +1,5 @@
1
- require 'nokogiri/xml/sax/document'
2
- require 'nokogiri/xml/sax/parser'
1
+ require "nokogiri/xml/sax/document"
2
+ require "nokogiri/xml/sax/parser"
3
3
 
4
4
  class NokogiriStreamParser < XMLRPC::XMLParser::AbstractStreamParser
5
5
  def initialize
@@ -17,4 +17,4 @@ class NokogiriStreamParser < XMLRPC::XMLParser::AbstractStreamParser
17
17
  end
18
18
  end
19
19
  end
20
- end
20
+ end
@@ -2,4 +2,4 @@ module Fog
2
2
  module XenServer
3
3
  class NotFound < Fog::Errors::Error; end
4
4
  end
5
- end
5
+ end
@@ -2,4 +2,4 @@ module Fog
2
2
  module XenServer
3
3
  class RequestFailed < Fog::Errors::Error; end
4
4
  end
5
- end
5
+ end
@@ -1,25 +1,25 @@
1
- require 'fog/core'
2
- require 'fog/xml'
3
- require 'fog/utilities'
1
+ require "fog/core"
2
+ require "fog/xml"
3
+ require File.expand_path("../utilities", __FILE__)
4
4
 
5
5
  module Fog
6
6
  module XenServer
7
- autoload :Connection, 'fog/xen_server/connection'
8
- autoload :InvalidLogin, 'fog/xen_server/invalid_login'
9
- autoload :NokogiriStreamParser, 'fog/xen_server/nokogiri_stream_parser'
10
- autoload :NotFound, 'fog/xen_server/not_found'
11
- autoload :RequestFailed, 'fog/xen_server/request_failed'
7
+ autoload :Connection, File.expand_path("../xen_server/connection", __FILE__)
8
+ autoload :InvalidLogin, File.expand_path("../xen_server/invalid_login", __FILE__)
9
+ autoload :NokogiriStreamParser, File.expand_path("../xen_server/nokogiri_stream_parser", __FILE__)
10
+ autoload :NotFound, File.expand_path("../xen_server/not_found", __FILE__)
11
+ autoload :RequestFailed, File.expand_path("../xen_server/request_failed", __FILE__)
12
12
 
13
13
  extend Fog::Provider
14
14
 
15
- service(:compute, 'Compute')
15
+ service(:compute, "Compute")
16
16
  end
17
17
 
18
18
  module Compute
19
- autoload :XenServer, 'fog/compute/xen_server'
19
+ autoload :XenServer, File.expand_path("../compute/xen_server", __FILE__)
20
20
  end
21
21
 
22
22
  module Parsers
23
- autoload :XenServer, 'fog/parsers/xen_server'
23
+ autoload :XenServer, File.expand_path("../parsers/xen_server", __FILE__)
24
24
  end
25
- end
25
+ end
@@ -0,0 +1 @@
1
+ # This file was intentionally left blank.
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module XenServer
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,152 +1,97 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: fog-xenserver
3
- version: !ruby/object:Gem::Version
4
- version: 0.2.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.1
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Paulo Henrique Lopes Ribeiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-25 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: fog-xml
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
11
+
12
+ date: 2015-04-04 00:00:00 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - &id002
18
+ - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: "0"
21
+ version_requirements: *id001
21
22
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: fog-core
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
23
  type: :runtime
24
+ name: fog-xml
25
+ - !ruby/object:Gem::Dependency
26
+ requirement: &id003 !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - *id002
29
+ version_requirements: *id003
35
30
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
31
+ type: :runtime
32
+ name: fog-core
33
+ - !ruby/object:Gem::Dependency
34
+ requirement: &id004 !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - *id002
37
+ version_requirements: *id004
49
38
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: minitest
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
39
  type: :development
40
+ name: rake
41
+ - !ruby/object:Gem::Dependency
42
+ requirement: &id005 !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - *id002
45
+ version_requirements: *id005
63
46
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: turn
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
47
  type: :development
48
+ name: minitest
49
+ - !ruby/object:Gem::Dependency
50
+ requirement: &id006 !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - *id002
53
+ version_requirements: *id006
77
54
  prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: pry
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
55
  type: :development
56
+ name: turn
57
+ - !ruby/object:Gem::Dependency
58
+ requirement: &id007 !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - *id002
61
+ version_requirements: *id007
91
62
  prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: vcr
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
63
  type: :development
64
+ name: pry
65
+ - !ruby/object:Gem::Dependency
66
+ requirement: &id008 !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - *id002
69
+ version_requirements: *id008
105
70
  prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: webmock
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
71
  type: :development
72
+ name: vcr
73
+ - !ruby/object:Gem::Dependency
74
+ requirement: &id009 !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - *id002
77
+ version_requirements: *id009
119
78
  prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: coveralls
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
79
  type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
80
+ name: webmock
139
81
  description: Module for the 'fog' gem to support XENSERVER.
140
82
  email: plribeiro3000@gmail.com
141
83
  executables: []
84
+
142
85
  extensions: []
86
+
143
87
  extra_rdoc_files: []
144
- files:
145
- - ".gitignore"
146
- - ".rubocop"
147
- - ".ruby-gemset"
148
- - ".ruby-version"
149
- - ".travis.yml"
88
+
89
+ files:
90
+ - .gitignore
91
+ - .rubocop
92
+ - .ruby-gemset
93
+ - .ruby-version
94
+ - .travis.yml
150
95
  - CONTRIBUTING.md
151
96
  - CONTRIBUTORS.md
152
97
  - Gemfile
@@ -591,31 +536,29 @@ files:
591
536
  - spec/fog/compute/xen_server_spec.rb
592
537
  - spec/minitest_helper.rb
593
538
  homepage: https://github.com/fog/fog-xenserver
594
- licenses:
539
+ licenses:
595
540
  - MIT
596
541
  metadata: {}
542
+
597
543
  post_install_message:
598
544
  rdoc_options: []
599
- require_paths:
545
+
546
+ require_paths:
600
547
  - lib
601
- required_ruby_version: !ruby/object:Gem::Requirement
602
- requirements:
603
- - - ">="
604
- - !ruby/object:Gem::Version
605
- version: '0'
606
- required_rubygems_version: !ruby/object:Gem::Requirement
607
- requirements:
608
- - - ">="
609
- - !ruby/object:Gem::Version
610
- version: '0'
548
+ required_ruby_version: !ruby/object:Gem::Requirement
549
+ requirements:
550
+ - *id002
551
+ required_rubygems_version: !ruby/object:Gem::Requirement
552
+ requirements:
553
+ - *id002
611
554
  requirements: []
555
+
612
556
  rubyforge_project:
613
- rubygems_version: 2.2.2
557
+ rubygems_version: 2.0.14
614
558
  signing_key:
615
559
  specification_version: 4
616
- summary: This library can be used as a module for `fog` or as standalone provider
617
- to use the XENSERVER in applications.
618
- test_files:
560
+ summary: This library can be used as a module for `fog` or as standalone provider to use the XENSERVER in applications.
561
+ test_files:
619
562
  - spec/cassettes/builtin_templates.yml
620
563
  - spec/cassettes/clone_server.yml
621
564
  - spec/cassettes/create_network.yml