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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA1:
3
- metadata.gz: f0269325f7c966d090346e8338c3afe76376885c
4
- data.tar.gz: 2adc377168002f1925552dc513c0d45f87c87f20
5
- SHA512:
6
- metadata.gz: 9db549d9311be20e980a0e054e553b98ff1b5da43ef49101aa1ec443b00e54b6fddfb6a2a1db9f17d98c1b85839fb64f5cbdae447e78169ed93082694d548216
7
- data.tar.gz: 8c343a5de1ac2d4e5faefa4f3620cda73624f235f2a46b1d5382ef8d3231a3a723acc5989fc6b41b025103fa56a8b8bbaa974c0025aeeccf543be0321d484a20
1
+ ---
2
+ SHA512:
3
+ data.tar.gz: d0ac34b63502b7b35a6bc805c2b2a820f9994a3a2e4a88d2e41b4042dd5bd53522abd4cb9f8c28ec74fcc5c3fbe1230bb8efa8f28c6ba279b11fb381f7221608
4
+ metadata.gz: 522acc12e5a3405b1d2194c04201c2c4de4d963a7f3c0f91415fedc0b73ba6530fb41e16425de27260be369fbf11407b071299eeed9f8e10a06f219ce4028996
5
+ SHA1:
6
+ data.tar.gz: e52e7c087cd6034f4ebaf9af941c21feb77ca749
7
+ metadata.gz: e0a54caf0e1052f809c836a58facebac1151ea51
data/.rubocop CHANGED
@@ -1,26 +1,23 @@
1
- MethodCalledOnDoEndBlock:
2
- Enabled: true
3
-
4
- HashSyntax:
1
+ Metrics/LineLength:
5
2
  Enabled: false
6
3
 
7
- LineLength:
4
+ Style/EachWithObject:
8
5
  Enabled: false
9
6
 
10
- SingleSpaceBeforeFirstArg:
11
- Enabled: false
7
+ Style/Encoding:
8
+ EnforcedStyle: when_needed
12
9
 
13
- SpaceInsideBrackets:
10
+ Style/FormatString:
14
11
  Enabled: false
15
12
 
16
- StringLiterals:
13
+ Style/HashSyntax:
17
14
  Enabled: false
18
15
 
19
- SymbolArray:
20
- Enabled: true
16
+ Style/SignalException:
17
+ EnforcedStyle: only_raise
21
18
 
22
- TrailingBlankLines:
23
- Enabled: false
19
+ Style/StringLiterals:
20
+ EnforcedStyle: double_quotes
24
21
 
25
- TrailingWhitespace:
22
+ Metrics/LineLength
26
23
  Enabled: false
@@ -14,7 +14,7 @@ class XenServer < Fog::Bin
14
14
  hash[key] = case key
15
15
  when :compute
16
16
  Fog::Logger.warning("XenServer[:compute] is not recommended, use Compute[:xenserver] for portability")
17
- Fog::Compute.new(:provider => 'XenServer')
17
+ Fog::Compute.new(:provider => "XenServer")
18
18
  else
19
19
  raise ArgumentError, "Unrecognized service: #{key.inspect}"
20
20
  end
@@ -1,11 +1,11 @@
1
- require 'fog/core'
1
+ require "fog/core"
2
2
 
3
3
  module Fog
4
4
  module Compute
5
5
  class XenServer < Fog::Service
6
- autoload :Models, 'fog/compute/xen_server/models'
7
- autoload :Real, 'fog/compute/xen_server/real'
8
- autoload :Mock, 'fog/compute/xen_server/mock'
6
+ autoload :Models, File.expand_path("../xen_server/models", __FILE__)
7
+ autoload :Real, File.expand_path("../xen_server/real", __FILE__)
8
+ autoload :Mock, File.expand_path("../xen_server/mock", __FILE__)
9
9
 
10
10
  requires :xenserver_username
11
11
  requires :xenserver_password
@@ -13,7 +13,7 @@ module Fog
13
13
  recognizes :xenserver_defaults
14
14
  recognizes :xenserver_timeout
15
15
 
16
- model_path 'fog/compute/xen_server/models'
16
+ model_path "fog/compute/xen_server/models"
17
17
  model :blob
18
18
  collection :blobs
19
19
  model :bond
@@ -85,7 +85,7 @@ module Fog
85
85
  model :vtpm
86
86
  collection :vtpms
87
87
 
88
- request_path 'fog/compute/xen_server/requests'
88
+ request_path "fog/compute/xen_server/requests"
89
89
 
90
90
  # host
91
91
  request :apply_edition_host
@@ -351,4 +351,4 @@ module Fog
351
351
  end
352
352
  end
353
353
  end
354
- end
354
+ end
@@ -2,80 +2,80 @@ module Fog
2
2
  module Compute
3
3
  class XenServer
4
4
  module Models
5
- autoload :Blob, 'fog/compute/xen_server/models/blob'
6
- autoload :Blobs, 'fog/compute/xen_server/models/blobs'
7
- autoload :Bond, 'fog/compute/xen_server/models/bond'
8
- autoload :Bonds, 'fog/compute/xen_server/models/bonds'
9
- autoload :ClassMethods, 'fog/compute/xen_server/models/class_methods'
10
- autoload :Collection, 'fog/compute/xen_server/models/collection'
11
- autoload :Console, 'fog/compute/xen_server/models/console'
12
- autoload :Consoles, 'fog/compute/xen_server/models/consoles'
13
- autoload :CrashDump, 'fog/compute/xen_server/models/crash_dump'
14
- autoload :CrashDumps, 'fog/compute/xen_server/models/crash_dumps'
15
- autoload :DrTask, 'fog/compute/xen_server/models/dr_task'
16
- autoload :DrTasks, 'fog/compute/xen_server/models/dr_tasks'
17
- autoload :GpuGroup, 'fog/compute/xen_server/models/gpu_group'
18
- autoload :GpuGroups, 'fog/compute/xen_server/models/gpu_groups'
19
- autoload :GuestMetrics, 'fog/compute/xen_server/models/guest_metrics'
20
- autoload :GuestsMetrics, 'fog/compute/xen_server/models/guests_metrics'
21
- autoload :Host, 'fog/compute/xen_server/models/host'
22
- autoload :HostCpu, 'fog/compute/xen_server/models/host_cpu'
23
- autoload :HostCpus, 'fog/compute/xen_server/models/host_cpus'
24
- autoload :HostCrashDump, 'fog/compute/xen_server/models/host_crash_dump'
25
- autoload :HostCrashDumps, 'fog/compute/xen_server/models/host_crash_dumps'
26
- autoload :HostMetrics, 'fog/compute/xen_server/models/host_metrics'
27
- autoload :HostPatch, 'fog/compute/xen_server/models/host_patch'
28
- autoload :HostPatchs, 'fog/compute/xen_server/models/host_patchs'
29
- autoload :Hosts, 'fog/compute/xen_server/models/hosts'
30
- autoload :HostsMetrics, 'fog/compute/xen_server/models/hosts_metrics'
31
- autoload :InstanceMethods, 'fog/compute/xen_server/models/instance_methods'
32
- autoload :Model, 'fog/compute/xen_server/models/model'
33
- autoload :Network, 'fog/compute/xen_server/models/network'
34
- autoload :Networks, 'fog/compute/xen_server/models/networks'
35
- autoload :Pbd, 'fog/compute/xen_server/models/pbd'
36
- autoload :Pbds, 'fog/compute/xen_server/models/pbds'
37
- autoload :Pci, 'fog/compute/xen_server/models/pci'
38
- autoload :Pcis, 'fog/compute/xen_server/models/pcis'
39
- autoload :Pgpu, 'fog/compute/xen_server/models/pgpu'
40
- autoload :Pgpus, 'fog/compute/xen_server/models/pgpus'
41
- autoload :Pif, 'fog/compute/xen_server/models/pif'
42
- autoload :PifMetrics, 'fog/compute/xen_server/models/pif_metrics'
43
- autoload :Pifs, 'fog/compute/xen_server/models/pifs'
44
- autoload :PifsMetrics, 'fog/compute/xen_server/models/pifs_metrics'
45
- autoload :Pool, 'fog/compute/xen_server/models/pool'
46
- autoload :PoolPatch, 'fog/compute/xen_server/models/pool_patch'
47
- autoload :PoolPatchs, 'fog/compute/xen_server/models/pool_patchs'
48
- autoload :Pools, 'fog/compute/xen_server/models/pools'
49
- autoload :Role, 'fog/compute/xen_server/models/role'
50
- autoload :Roles, 'fog/compute/xen_server/models/roles'
51
- autoload :Server, 'fog/compute/xen_server/models/server'
52
- autoload :ServerAppliance, 'fog/compute/xen_server/models/server_appliance'
53
- autoload :ServerAppliances, 'fog/compute/xen_server/models/server_appliances'
54
- autoload :ServerMetrics, 'fog/compute/xen_server/models/server_metrics'
55
- autoload :ServersMetrics, 'fog/compute/xen_server/models/servers_metrics'
56
- autoload :Servers, 'fog/compute/xen_server/models/servers'
57
- autoload :StorageManager, 'fog/compute/xen_server/models/storage_manager'
58
- autoload :StorageManagers, 'fog/compute/xen_server/models/storage_managers'
59
- autoload :StorageRepositories, 'fog/compute/xen_server/models/storage_repositories'
60
- autoload :StorageRepository, 'fog/compute/xen_server/models/storage_repository'
61
- autoload :Tunnel, 'fog/compute/xen_server/models/tunnel'
62
- autoload :Tunnels, 'fog/compute/xen_server/models/tunnels'
63
- autoload :Vbd, 'fog/compute/xen_server/models/vbd'
64
- autoload :VbdMetrics, 'fog/compute/xen_server/models/vbd_metrics'
65
- autoload :Vbds, 'fog/compute/xen_server/models/vbds'
66
- autoload :VbdsMetrics, 'fog/compute/xen_server/models/vbds_metrics'
67
- autoload :Vdi, 'fog/compute/xen_server/models/vdi'
68
- autoload :Vdis, 'fog/compute/xen_server/models/vdis'
69
- autoload :Vif, 'fog/compute/xen_server/models/vif'
70
- autoload :VifMetrics, 'fog/compute/xen_server/models/vif_metrics'
71
- autoload :Vifs, 'fog/compute/xen_server/models/vifs'
72
- autoload :VifsMetrics, 'fog/compute/xen_server/models/vifs_metrics'
73
- autoload :Vlan, 'fog/compute/xen_server/models/vlan'
74
- autoload :Vlans, 'fog/compute/xen_server/models/vlans'
75
- autoload :Vmpp, 'fog/compute/xen_server/models/vmpp'
76
- autoload :Vmpps, 'fog/compute/xen_server/models/vmpps'
77
- autoload :Vtpm, 'fog/compute/xen_server/models/vtpm'
78
- autoload :Vtpms, 'fog/compute/xen_server/models/vtpms'
5
+ autoload :Blob, File.expand_path("../models/blob", __FILE__)
6
+ autoload :Blobs, File.expand_path("../models/blobs", __FILE__)
7
+ autoload :Bond, File.expand_path("../models/bond", __FILE__)
8
+ autoload :Bonds, File.expand_path("../models/bonds", __FILE__)
9
+ autoload :ClassMethods, File.expand_path("../models/class_methods", __FILE__)
10
+ autoload :Collection, File.expand_path("../models/collection", __FILE__)
11
+ autoload :Console, File.expand_path("../models/console", __FILE__)
12
+ autoload :Consoles, File.expand_path("../models/consoles", __FILE__)
13
+ autoload :CrashDump, File.expand_path("../models/crash_dump", __FILE__)
14
+ autoload :CrashDumps, File.expand_path("../models/crash_dumps", __FILE__)
15
+ autoload :DrTask, File.expand_path("../models/dr_task", __FILE__)
16
+ autoload :DrTasks, File.expand_path("../models/dr_tasks", __FILE__)
17
+ autoload :GpuGroup, File.expand_path("../models/gpu_group", __FILE__)
18
+ autoload :GpuGroups, File.expand_path("../models/gpu_groups", __FILE__)
19
+ autoload :GuestMetrics, File.expand_path("../models/guest_metrics", __FILE__)
20
+ autoload :GuestsMetrics, File.expand_path("../models/guests_metrics", __FILE__)
21
+ autoload :Host, File.expand_path("../models/host", __FILE__)
22
+ autoload :HostCpu, File.expand_path("../models/host_cpu", __FILE__)
23
+ autoload :HostCpus, File.expand_path("../models/host_cpus", __FILE__)
24
+ autoload :HostCrashDump, File.expand_path("../models/host_crash_dump", __FILE__)
25
+ autoload :HostCrashDumps, File.expand_path("../models/host_crash_dumps", __FILE__)
26
+ autoload :HostMetrics, File.expand_path("../models/host_metrics", __FILE__)
27
+ autoload :HostPatch, File.expand_path("../models/host_patch", __FILE__)
28
+ autoload :HostPatchs, File.expand_path("../models/host_patchs", __FILE__)
29
+ autoload :Hosts, File.expand_path("../models/hosts", __FILE__)
30
+ autoload :HostsMetrics, File.expand_path("../models/hosts_metrics", __FILE__)
31
+ autoload :InstanceMethods, File.expand_path("../models/instance_methods", __FILE__)
32
+ autoload :Model, File.expand_path("../models/model", __FILE__)
33
+ autoload :Network, File.expand_path("../models/network", __FILE__)
34
+ autoload :Networks, File.expand_path("../models/networks", __FILE__)
35
+ autoload :Pbd, File.expand_path("../models/pbd", __FILE__)
36
+ autoload :Pbds, File.expand_path("../models/pbds", __FILE__)
37
+ autoload :Pci, File.expand_path("../models/pci", __FILE__)
38
+ autoload :Pcis, File.expand_path("../models/pcis", __FILE__)
39
+ autoload :Pgpu, File.expand_path("../models/pgpu", __FILE__)
40
+ autoload :Pgpus, File.expand_path("../models/pgpus", __FILE__)
41
+ autoload :Pif, File.expand_path("../models/pif", __FILE__)
42
+ autoload :PifMetrics, File.expand_path("../models/pif_metrics", __FILE__)
43
+ autoload :Pifs, File.expand_path("../models/pifs", __FILE__)
44
+ autoload :PifsMetrics, File.expand_path("../models/pifs_metrics", __FILE__)
45
+ autoload :Pool, File.expand_path("../models/pool", __FILE__)
46
+ autoload :PoolPatch, File.expand_path("../models/pool_patch", __FILE__)
47
+ autoload :PoolPatchs, File.expand_path("../models/pool_patchs", __FILE__)
48
+ autoload :Pools, File.expand_path("../models/pools", __FILE__)
49
+ autoload :Role, File.expand_path("../models/role", __FILE__)
50
+ autoload :Roles, File.expand_path("../models/roles", __FILE__)
51
+ autoload :Server, File.expand_path("../models/server", __FILE__)
52
+ autoload :ServerAppliance, File.expand_path("../models/server_appliance", __FILE__)
53
+ autoload :ServerAppliances, File.expand_path("../models/server_appliances", __FILE__)
54
+ autoload :ServerMetrics, File.expand_path("../models/server_metrics", __FILE__)
55
+ autoload :ServersMetrics, File.expand_path("../models/servers_metrics", __FILE__)
56
+ autoload :Servers, File.expand_path("../models/servers", __FILE__)
57
+ autoload :StorageManager, File.expand_path("../models/storage_manager", __FILE__)
58
+ autoload :StorageManagers, File.expand_path("../models/storage_managers", __FILE__)
59
+ autoload :StorageRepositories, File.expand_path("../models/storage_repositories", __FILE__)
60
+ autoload :StorageRepository, File.expand_path("../models/storage_repository", __FILE__)
61
+ autoload :Tunnel, File.expand_path("../models/tunnel", __FILE__)
62
+ autoload :Tunnels, File.expand_path("../models/tunnels", __FILE__)
63
+ autoload :Vbd, File.expand_path("../models/vbd", __FILE__)
64
+ autoload :VbdMetrics, File.expand_path("../models/vbd_metrics", __FILE__)
65
+ autoload :Vbds, File.expand_path("../models/vbds", __FILE__)
66
+ autoload :VbdsMetrics, File.expand_path("../models/vbds_metrics", __FILE__)
67
+ autoload :Vdi, File.expand_path("../models/vdi", __FILE__)
68
+ autoload :Vdis, File.expand_path("../models/vdis", __FILE__)
69
+ autoload :Vif, File.expand_path("../models/vif", __FILE__)
70
+ autoload :VifMetrics, File.expand_path("../models/vif_metrics", __FILE__)
71
+ autoload :Vifs, File.expand_path("../models/vifs", __FILE__)
72
+ autoload :VifsMetrics, File.expand_path("../models/vifs_metrics", __FILE__)
73
+ autoload :Vlan, File.expand_path("../models/vlan", __FILE__)
74
+ autoload :Vlans, File.expand_path("../models/vlans", __FILE__)
75
+ autoload :Vmpp, File.expand_path("../models/vmpp", __FILE__)
76
+ autoload :Vmpps, File.expand_path("../models/vmpps", __FILE__)
77
+ autoload :Vtpm, File.expand_path("../models/vtpm", __FILE__)
78
+ autoload :Vtpms, File.expand_path("../models/vtpms", __FILE__)
79
79
  end
80
80
  end
81
81
  end
@@ -12,7 +12,7 @@ module Fog
12
12
  end
13
13
 
14
14
  def require_creation_attributes
15
- requires *self.class.instance_variable_get('@require_before_save')
15
+ requires *self.class.instance_variable_get("@require_before_save")
16
16
  end
17
17
 
18
18
  def set_attribute(name, *val)
@@ -16,9 +16,9 @@ module Fog
16
16
  attribute :bridge
17
17
  attribute :current_operations
18
18
  attribute :default_locking_mode
19
- attribute :description, :aliases => :name_description, :default => '', :as => :name_description
19
+ attribute :description, :aliases => :name_description, :default => "", :as => :name_description
20
20
  attribute :mtu, :aliases => :MTU, :as => :MTU
21
- attribute :name, :aliases => :name_label, :default => '', :as => :name_label
21
+ attribute :name, :aliases => :name_label, :default => "", :as => :name_label
22
22
  attribute :other_config, :default => {}
23
23
  attribute :tags
24
24
  attribute :uuid
@@ -1,4 +1,4 @@
1
- require 'fog/compute/models/server'
1
+ require "fog/compute/models/server"
2
2
 
3
3
  module Fog
4
4
  module Compute
@@ -16,9 +16,9 @@ module Fog
16
16
 
17
17
  identity :reference
18
18
 
19
- attribute :actions_after_crash, :default => 'Restart'
20
- attribute :actions_after_reboot, :default => 'Restart'
21
- attribute :actions_after_shutdown, :default => 'Destroy'
19
+ attribute :actions_after_crash, :default => "Restart"
20
+ attribute :actions_after_reboot, :default => "Restart"
21
+ attribute :actions_after_shutdown, :default => "Destroy"
22
22
  attribute :allowed_operations
23
23
  attribute :blobs
24
24
  attribute :blocked_operations
@@ -26,12 +26,12 @@ module Fog
26
26
  attribute :current_operations
27
27
  attribute :domarch
28
28
  attribute :domid
29
- attribute :description, :aliases => :name_description, :default => '', :as => :name_description
29
+ attribute :description, :aliases => :name_description, :default => "", :as => :name_description
30
30
  attribute :generation_id
31
31
  attribute :ha_always_run
32
32
  attribute :ha_restart_priority
33
33
  attribute :hvm_boot_params, :aliases => :HVM_boot_params, :default => {}, :as => :HVM_boot_params
34
- attribute :hvm_boot_policy, :aliases => :HVM_boot_policy, :default => '', :as => :HVM_boot_policy
34
+ attribute :hvm_boot_policy, :aliases => :HVM_boot_policy, :default => "", :as => :HVM_boot_policy
35
35
  attribute :hvm_shadow_multiplier, :aliases => :HVM_shadow_multiplier, :as => :HVM_shadow_multiplier
36
36
  attribute :is_a_snapshot
37
37
  attribute :is_a_template, :default => true
@@ -39,29 +39,29 @@ module Fog
39
39
  attribute :is_snapshot_from_vmpp
40
40
  attribute :last_booted_record
41
41
  attribute :last_boot_cpu_flags, :aliases => :last_boot_CPU_flags, :as => :last_boot_CPU_flags
42
- attribute :memory_dynamic_max, :default => '536870912'
43
- attribute :memory_dynamic_min, :default => '536870912'
42
+ attribute :memory_dynamic_max, :default => "536870912"
43
+ attribute :memory_dynamic_min, :default => "536870912"
44
44
  attribute :memory_overhead
45
- attribute :memory_static_max, :default => '536870912'
46
- attribute :memory_static_min, :default => '536870912'
45
+ attribute :memory_static_max, :default => "536870912"
46
+ attribute :memory_static_min, :default => "536870912"
47
47
  attribute :memory_target
48
- attribute :name, :aliases => :name_label, :default => '', :as => :name_label
48
+ attribute :name, :aliases => :name_label, :default => "", :as => :name_label
49
49
  attribute :order
50
50
  attribute :other_config, :default => {}
51
- attribute :pci_bus, :aliases => :PCI_bus, :default => '', :as => :PCI_bus
52
- attribute :platform, :default => { 'nx' => 'true',
53
- 'acpi' => 'true',
54
- 'apic' => 'true',
55
- 'pae' => 'true',
56
- 'viridian' => 'true' }
51
+ attribute :pci_bus, :aliases => :PCI_bus, :default => "", :as => :PCI_bus
52
+ attribute :platform, :default => { "nx" => "true",
53
+ "acpi" => "true",
54
+ "apic" => "true",
55
+ "pae" => "true",
56
+ "viridian" => "true" }
57
57
  attribute :power_state
58
- attribute :pv_args, :aliases => :PV_args, :default => '-- quiet console=hvc0', :as => :PV_args
59
- attribute :pv_bootloader, :aliases => :PV_bootloader, :default => 'pygrub', :as => :PV_bootloader
60
- attribute :pv_bootloader_args, :aliases => :PV_bootloader_args, :default => '', :as => :PV_bootloader_args
61
- attribute :pv_kernel, :aliases => :PV_kernel, :default => '', :as => :PV_kernel
62
- attribute :pv_legacy_args, :aliases => :PV_legacy_args, :default => '', :as => :PV_legacy_args
63
- attribute :pv_ramdisk, :aliases => :PV_ramdisk, :default => '', :as => :PV_ramdisk
64
- attribute :recommendations, :default => ''
58
+ attribute :pv_args, :aliases => :PV_args, :default => "-- quiet console=hvc0", :as => :PV_args
59
+ attribute :pv_bootloader, :aliases => :PV_bootloader, :default => "pygrub", :as => :PV_bootloader
60
+ attribute :pv_bootloader_args, :aliases => :PV_bootloader_args, :default => "", :as => :PV_bootloader_args
61
+ attribute :pv_kernel, :aliases => :PV_kernel, :default => "", :as => :PV_kernel
62
+ attribute :pv_legacy_args, :aliases => :PV_legacy_args, :default => "", :as => :PV_legacy_args
63
+ attribute :pv_ramdisk, :aliases => :PV_ramdisk, :default => "", :as => :PV_ramdisk
64
+ attribute :recommendations, :default => ""
65
65
  attribute :shutdown_delay
66
66
  attribute :snapshot_info
67
67
  attribute :snapshot_metadata
@@ -69,10 +69,10 @@ module Fog
69
69
  attribute :start_delay
70
70
  attribute :tags
71
71
  attribute :transportable_snapshot_id
72
- attribute :user_version, :default => '0'
72
+ attribute :user_version, :default => "0"
73
73
  attribute :uuid
74
- attribute :vcpus_at_startup, :aliases => :VCPUs_at_startup, :default => '1', :as => :VCPUs_at_startup
75
- attribute :vcpus_max, :aliases => :VCPUs_max, :default => '1', :as => :VCPUs_max
74
+ attribute :vcpus_at_startup, :aliases => :VCPUs_at_startup, :default => "1", :as => :VCPUs_at_startup
75
+ attribute :vcpus_max, :aliases => :VCPUs_max, :default => "1", :as => :VCPUs_max
76
76
  attribute :vcpus_params, :aliases => :VCPUs_params, :default => {}, :as => :VCPUs_params
77
77
  attribute :version
78
78
  attribute :xenstore_data
@@ -113,12 +113,12 @@ module Fog
113
113
 
114
114
  def running?
115
115
  reload
116
- power_state == 'Running'
116
+ power_state == "Running"
117
117
  end
118
118
 
119
119
  def halted?
120
120
  reload
121
- power_state == 'Halted'
121
+ power_state == "Halted"
122
122
  end
123
123
 
124
124
  def destroy
@@ -149,11 +149,11 @@ module Fog
149
149
  end
150
150
 
151
151
  def can_be_cloned?
152
- allowed_operations.include?('clone')
152
+ allowed_operations.include?("clone")
153
153
  end
154
154
 
155
155
  def clone(name)
156
- raise 'Clone Operation not Allowed' unless can_be_cloned?
156
+ raise "Clone Operation not Allowed" unless can_be_cloned?
157
157
  self.reference = service.clone_vm(name, self.reference)
158
158
  reload
159
159
  end
@@ -1,4 +1,4 @@
1
- require 'fog/core/collection'
1
+ require "fog/core/collection"
2
2
 
3
3
  module Fog
4
4
  module Compute
@@ -8,22 +8,22 @@ module Fog
8
8
  model Fog::Compute::XenServer::Models::Server
9
9
 
10
10
  def templates
11
- Fog::Logger.deprecation 'This method is DEPRECATED. Call #templates directly on the connection instead.'
11
+ Fog::Logger.deprecation "This method is DEPRECATED. Call #templates directly on the connection instead."
12
12
  service.templates
13
13
  end
14
14
 
15
15
  def custom_templates
16
- Fog::Logger.deprecation 'This method is DEPRECATED. Call #custom_templates directly on the connection instead.'
16
+ Fog::Logger.deprecation "This method is DEPRECATED. Call #custom_templates directly on the connection instead."
17
17
  service.custom_templates
18
18
  end
19
19
 
20
20
  def builtin_templates
21
- Fog::Logger.deprecation 'This method is DEPRECATED. Call #builtin_templates directly on the connection instead.'
21
+ Fog::Logger.deprecation "This method is DEPRECATED. Call #builtin_templates directly on the connection instead."
22
22
  service.builtin_templates
23
23
  end
24
24
 
25
25
  def all(options = {})
26
- data = service.get_records 'VM'
26
+ data = service.get_records "VM"
27
27
  # Exclude templates
28
28
  data.delete_if { |vm| vm[:is_control_domain] or vm[:is_a_template] }
29
29
  data.delete_if { |vm| vm[:is_a_snapshot] and !options[:include_snapshots] }
@@ -13,14 +13,14 @@ module Fog
13
13
 
14
14
  attribute :allowed_operations
15
15
  attribute :blobs
16
- attribute :content_type, :default => 'user'
16
+ attribute :content_type, :default => "user"
17
17
  attribute :current_operations
18
- attribute :description, :aliases => :name_description, :default => ''
18
+ attribute :description, :aliases => :name_description, :default => ""
19
19
  attribute :introduced_by
20
20
  attribute :local_cache_enabled
21
21
  attribute :name, :aliases => :name_label
22
22
  attribute :other_config
23
- attribute :physical_size, :default => '0'
23
+ attribute :physical_size, :default => "0"
24
24
  attribute :physical_utilisation
25
25
  attribute :shared, :default => false
26
26
  attribute :sm_config, :default => {}