Sha256: e25f19745ce6d9af931be55673126a303fbfb6b5d3a2ec05971a772769f76bc2

Contents?: true

Size: 592 Bytes

Versions: 40

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

40 entries across 40 versions & 1 rubygems

Version Path
onc_certification_g10_test_kit-7.0.1 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-7.0.0 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-6.0.3 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-6.0.2 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-6.0.1 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-6.0.0 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-5.4.2 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-5.4.1 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-5.3.0 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-5.2.0 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-5.1.0 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-5.0.0 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-4.1.0 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-4.0.0 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-3.8.1 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-3.8.0 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-3.7.2 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-3.7.1 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-3.7.0 lib/inferno/terminology/tasks/cleanup_precursors.rb
onc_certification_g10_test_kit-3.6.0 lib/inferno/terminology/tasks/cleanup_precursors.rb