Sha256: e25f19745ce6d9af931be55673126a303fbfb6b5d3a2ec05971a772769f76bc2

Contents?: true

Size: 592 Bytes

Versions: 42

Compression:

Stored size: 592 Bytes

Contents

require_relative 'temp_dir'

module Inferno
  module Terminology
    module Tasks
      class CleanupPrecursors
        include TempDir

        attr_reader :version

        def initialize(version:)
          @version = version
        end

        def run
          Inferno.logger.info "removing terminology precursor files in #{versioned_temp_dir}"
          FileUtils.remove_dir(umls_dir, true)
          FileUtils.remove_dir(umls_subset_dir, true)
          FileUtils.rm(umls_zip_path, force: true)
          FileUtils.rm(pipe_files, force: true)
        end
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
onc_certification_g10_test_kit-2.0.0.rc3 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-2.0.0.rc2 lib/inferno/terminology/tasks/cleanup_precursors.rb