lib/percheron/validators/config.rb in percheron-0.7.11 vs lib/percheron/validators/config.rb in percheron-0.7.12

- old
+ new

@@ -21,12 +21,11 @@ def rules [ :validate_config_file_defined, :validate_config_file_existence, - :validate_config_file_not_empty, - :validate_config_file_contents + :validate_config_file_not_empty ] end def config_file_contents @config_file_contents ||= Hashie::Mash.new(YAML.load_file(config_file)) @@ -40,13 +39,9 @@ 'Does not exist' unless config_file.exist? end def validate_config_file_not_empty 'Is empty' if config_file_contents.empty? - end - - def validate_config_file_contents - 'Is invalid' unless config_file_contents.docker end end end end