lib/vagabond/errors.rb in vagabond-0.2.8 vs lib/vagabond/errors.rb in vagabond-0.2.10

- old
+ new

@@ -1,5 +1,6 @@ +#encoding: utf-8 module Vagabond class VagabondError < StandardError class << self attr_accessor :exit_code end @@ -13,9 +14,11 @@ reserved_name invalid_name invalid_base_template invalid_action invalid_template kitchen_missing_yml kitchen_no_cookbook_args kitchen_too_many_args kitchen_invalid_platform missing_node_name cluster_invalid kitchen_test_failed host_provision_failed spec_failed + node_provision_failed librarian_host_install_failed + echef_base_missing ).each_with_index do |klass_name, i| klass = klass_name.split('_').map(&:capitalize).join self.class_eval("class #{klass} < VagabondError; self.exit_code = #{i + 1}; end") end end