Sha256: ed53bca6f8ffcf5dbee529e60f8bb8492dc7773c70577399b01c838cdeb2eb05

Contents?: true

Size: 498 Bytes

Versions: 22

Compression:

Stored size: 498 Bytes

Contents

# frozen_string_literal: true

require_relative '../../migration/version'

module Dsu
  module Presenters
    module Import
      module ImportEntry
        def overriding_project?
          options&.fetch(:override, false)
        end

        private

        def import_entry?(entry_group_entry)
          entry_group_entry[:version].to_i == Dsu::Migration::VERSION &&
            (overriding_project? || entry_group_entry[:project_name] == project_name)
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
dsu-3.0.0.alpha.1 lib/dsu/presenters/import/import_entry.rb
dsu-3.0.0.alpha.0 lib/dsu/presenters/import/import_entry.rb