def copy_definitions
      @logger.info "Creating definition dest dir"
      if Dir.exists? definition_dest_dir
        @logger.warn "#{definition_dest_dir} already exists, contents will be deleted"
        FileUtils.rm_rf definition_dest_dir
      end
      FileUtils.mkdir_p definition_dest_dir

      @logger.info "Copying definition from #{definition_dir} to #{definition_dest_dir}"
      FileUtils.cp_r Dir.glob("#{definition_dir}/*"), definition_dest_dir

      # Compile erb files
      Dir.glob(File.join(definition_dest_dir, '*.erb')) { |erb_file|
        compile_erb(erb_file) # compile erb
        FileUtils.rm erb_file # remove original
      }
    end
def copy_definitions
      @logger.info "Creating definition dest dir"
      if Dir.exists? definition_dest_dir
        @logger.warn "#{definition_dest_dir} already exists, contents will be deleted"
        FileUtils.rm_rf definition_dest_dir
      end
      FileUtils.mkdir_p definition_dest_dir

      @logger.info "Copying definition from #{definition_dir} to #{definition_dest_dir}"
      FileUtils.cp_r Dir.glob("#{definition_dir}/*"), definition_dest_dir

      # Compile erb files
      Dir.glob(File.join(definition_dest_dir, '*.erb')) { |erb_file|
        compile_erb(erb_file) # compile erb
        FileUtils.rm erb_file # remove original
      }
    end
Copies the veewee definition directory from ../templates/#@type to #@prefix/definitions/#@name