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-6.1.0 app/models/invocation_provider_input_value.rb
foreman_remote_execution-5.0.4 app/models/invocation_provider_input_value.rb
foreman_remote_execution-5.0.3 app/models/invocation_provider_input_value.rb
foreman_remote_execution-6.0.0 app/models/invocation_provider_input_value.rb
foreman_remote_execution-5.0.2 app/models/invocation_provider_input_value.rb
foreman_remote_execution-5.1.0 app/models/invocation_provider_input_value.rb
foreman_remote_execution-5.0.1 app/models/invocation_provider_input_value.rb
foreman_remote_execution-5.0.0 app/models/invocation_provider_input_value.rb
foreman_remote_execution-4.8.0 app/models/invocation_provider_input_value.rb
foreman_remote_execution-4.5.6 app/models/invocation_provider_input_value.rb
foreman_remote_execution-4.5.5 app/models/invocation_provider_input_value.rb
foreman_remote_execution-4.5.4 app/models/invocation_provider_input_value.rb
foreman_remote_execution-4.7.0 app/models/invocation_provider_input_value.rb
foreman_remote_execution-4.5.3 app/models/invocation_provider_input_value.rb
foreman_remote_execution-4.5.2 app/models/invocation_provider_input_value.rb
foreman_remote_execution-4.5.1 app/models/invocation_provider_input_value.rb
foreman_remote_execution-4.6.0 app/models/invocation_provider_input_value.rb
foreman_remote_execution-4.5.0 app/models/invocation_provider_input_value.rb
foreman_remote_execution-4.4.0 app/models/invocation_provider_input_value.rb