def each(&block)
      definitions = Hash.new

      env.logger.debug("[Definition] Searching #{env.definition_dir} for definitions:")
      subdirs = Dir.glob("#{env.definition_dir}/*")

      subdirs.each do |sub|
        name = File.basename(sub)
        env.logger.debug("[Definition] possible definition '#{name}' found")
        begin
          definitions[name] = Veewee::Definition.load(name, env)
        rescue Veewee::DefinitionError => ex
          env.logger.debug("[Definition] failed to load definition from directory '#{name}' #{ex}")
        end
      end

      if definitions.length == 0
        env.logger.debug("[Definition] no definitions found")
      end

      definitions.each(&block)
    end
def each(&block)
      definitions = Hash.new

      env.logger.debug("[Definition] Searching #{env.definition_dir} for definitions:")
      subdirs = Dir.glob("#{env.definition_dir}/*")

      subdirs.each do |sub|
        name = File.basename(sub)
        env.logger.debug("[Definition] possible definition '#{name}' found")
        begin
          definitions[name] = Veewee::Definition.load(name, env)
        rescue Veewee::DefinitionError => ex
          env.logger.debug("[Definition] failed to load definition from directory '#{name}' #{ex}")
        end
      end

      if definitions.length == 0
        env.logger.debug("[Definition] no definitions found")
      end

      definitions.each(&block)
    end
Fetch all definitions