Sha256: 10ccd80e13fa19d2ae0f268111f23a23f94317c3c05c80483a5b171656328ab7

Contents?: true

Size: 439 Bytes

Versions: 18

Compression:

Stored size: 439 Bytes

Contents

# frozen_string_literal: true

module Helpers
  module JobHelper
    class << self
      def correct_feature?(job_invocation, feature)
        RemoteExecutionFeature.where(job_template_id: job_invocation.pattern_template_invocations
                                                                    .first
                                                                    .template_id, label: feature).any?
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
foreman_leapp-1.2.1 app/lib/helpers/job_helper.rb
foreman_leapp-1.2.0 app/lib/helpers/job_helper.rb
foreman_leapp-0.1.15 app/lib/helpers/job_helper.rb
foreman_leapp-1.1.1 app/lib/helpers/job_helper.rb
foreman_leapp-1.1.0 app/lib/helpers/job_helper.rb
foreman_leapp-1.0.0 app/lib/helpers/job_helper.rb
foreman_leapp-0.1.14 app/lib/helpers/job_helper.rb
foreman_leapp-0.1.13 app/lib/helpers/job_helper.rb
foreman_leapp-0.1.12 app/lib/helpers/job_helper.rb
foreman_leapp-0.1.11 app/lib/helpers/job_helper.rb
foreman_leapp-0.1.10 app/lib/helpers/job_helper.rb
foreman_leapp-0.1.9 app/lib/helpers/job_helper.rb
foreman_leapp-0.1.8 app/lib/helpers/job_helper.rb
foreman_leapp-0.1.7 app/lib/helpers/job_helper.rb
foreman_leapp-0.1.6 app/lib/helpers/job_helper.rb
foreman_leapp-0.1.5 app/lib/helpers/job_helper.rb
foreman_leapp-0.1.4 app/lib/helpers/job_helper.rb
foreman_leapp-0.1.3 app/lib/helpers/job_helper.rb