Sha256: 0e93b260faf514415d8a3ac2cb92e234681846e9ba30c971af9b8c7a33702e4a

Contents?: true

Size: 422 Bytes

Versions: 79

Compression:

Stored size: 422 Bytes

Contents

class InvocationProviderInputValue < ApplicationRecord
  belongs_to :template_invocation

  validates :name, :presence => true

  validates :value, :inclusion => { :in => proc { |v| v.provider_input.options_array } },
                    :if => proc { |v| v.provider_input.options_array.present? }

  def provider_input
    template_invocation.template.provider.provider_inputs.find { |item| item.name == name }
  end
end

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
foreman_remote_execution-14.1.2 app/models/invocation_provider_input_value.rb
foreman_remote_execution-14.1.1 app/models/invocation_provider_input_value.rb
foreman_remote_execution-14.1.0 app/models/invocation_provider_input_value.rb
foreman_remote_execution-14.0.2 app/models/invocation_provider_input_value.rb
foreman_remote_execution-14.0.1 app/models/invocation_provider_input_value.rb
foreman_remote_execution-13.2.6 app/models/invocation_provider_input_value.rb
foreman_remote_execution-14.0.0 app/models/invocation_provider_input_value.rb
foreman_remote_execution-13.2.5 app/models/invocation_provider_input_value.rb
foreman_remote_execution-13.2.4 app/models/invocation_provider_input_value.rb
foreman_remote_execution-13.2.3 app/models/invocation_provider_input_value.rb
foreman_remote_execution-13.2.2 app/models/invocation_provider_input_value.rb
foreman_remote_execution-12.0.7 app/models/invocation_provider_input_value.rb
foreman_remote_execution-13.2.1 app/models/invocation_provider_input_value.rb
foreman_remote_execution-13.2.0 app/models/invocation_provider_input_value.rb
foreman_remote_execution-10.1.3 app/models/invocation_provider_input_value.rb
foreman_remote_execution-13.0.0 app/models/invocation_provider_input_value.rb
foreman_remote_execution-12.0.5 app/models/invocation_provider_input_value.rb
foreman_remote_execution-12.0.4 app/models/invocation_provider_input_value.rb
foreman_remote_execution-12.0.1 app/models/invocation_provider_input_value.rb
foreman_remote_execution-12.0.2 app/models/invocation_provider_input_value.rb