Method: Fog::Compute::Ecloud::Shared#validate_create_server_options_identical
- Defined in:
- lib/rackspace-fog/ecloud/requests/compute/virtual_machine_copy_identical.rb
#validate_create_server_options_identical(template_uri, options) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/rackspace-fog/ecloud/requests/compute/virtual_machine_copy_identical.rb', line 6 def (template_uri, ) required_opts = [:name, :row, :group, :source] unless required_opts.all? { |opt| .has_key?(opt) } raise ArgumentError.new("Required data missing: #{(required_opts - options.keys).map(&:inspect).join(", ")}") end end |