lib/vagrant-profitbricks/errors.rb in vagrant-profitbricks-1.0.0 vs lib/vagrant-profitbricks/errors.rb in vagrant-profitbricks-4.0.0
- old
+ new
@@ -1,12 +1,14 @@
-require "vagrant"
+# frozen_string_literal: true
+require 'vagrant'
+
module VagrantPlugins
module ProfitBricks
module Errors
class VagrantProfitBricksError < Vagrant::Errors::VagrantError
- error_namespace("vagrant_profitbricks.errors")
+ error_namespace('vagrant_profitbricks.errors')
end
class CreateBadState < VagrantProfitBricksError
error_key(:create_bad_state)
end
@@ -17,23 +19,30 @@
class NoMatchingImage < VagrantProfitBricksError
error_key(:no_matching_image)
end
- class NoMatchingDatacenter < VagrantProfitBricksError
- error_key(:no_matching_datacenter)
+ class NoDatacenterID < VagrantProfitBricksError
+ error_key(:no_datacenter_uuid)
end
+ class NoLan < VagrantProfitBricksError
+ error_key(:no_lan)
+ end
+
class RsyncError < VagrantProfitBricksError
error_key(:rsync_error)
end
class ImageOrLicenceTypeMustBeProvided < VagrantProfitBricksError
error_key(:image_or_licence_type_must_be_provided)
end
+ class ImageOrImageTypeMustBeProvided < VagrantProfitBricksError
+ error_key(:image_or_image_alias_must_be_provided)
+ end
class ImagePasswordOrSSHKeysMustBeProvided < VagrantProfitBricksError
error_key(:image_password_or_ssh_keys_must_be_provided)
- end
+ end
end
end
end