Sha256: aa3ef0bc72b3db253866de11b1a2d051827e73c3d6ec4d03dd3f13d2fa3e9cd5

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

require "vagrant"

module VagrantPlugins
  module ProfitBricks
    module Errors
      class VagrantProfitBricksError < Vagrant::Errors::VagrantError
        error_namespace("vagrant_profitbricks.errors")
      end

      class CreateBadState < VagrantProfitBricksError
        error_key(:create_bad_state)
      end

      class NoMatchingFlavor < VagrantProfitBricksError
        error_key(:no_matching_flavor)
      end

      class NoMatchingImage < VagrantProfitBricksError
        error_key(:no_matching_image)
      end

      class NoMatchingDatacenter < VagrantProfitBricksError
        error_key(:no_matching_datacenter)
      end

      class RsyncError < VagrantProfitBricksError
        error_key(:rsync_error)
      end

      class ImageOrLicenceTypeMustBeProvided < VagrantProfitBricksError
        error_key(:image_or_licence_type_must_be_provided)
      end

      class ImagePasswordOrSSHKeysMustBeProvided < VagrantProfitBricksError
        error_key(:image_password_or_ssh_keys_must_be_provided)
      end     
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-profitbricks-1.0.0 lib/vagrant-profitbricks/errors.rb