Sha256: cfdf352a77394cd3ed41db0258c4ebf187a93db60e0026ae71ac8dc436cb02c7

Contents?: true

Size: 570 Bytes

Versions: 47

Compression:

Stored size: 570 Bytes

Contents

object @smart_class_parameter

extends 'foreman_puppet/api/v2/smart_class_parameters/main'

if params[:puppetclass_id].blank?
  node do |smart_class_parameter|
    { puppetclass: partial('foreman_puppet/api/v2/puppetclasses/base', object: smart_class_parameter.param_class) }
  end
end

if params[:environment_id].blank?
  child :environments do
    extends 'foreman_puppet/api/v2/environments/base'
  end
end

node do |smart_class_parameter|
  { override_values: partial('foreman_puppet/api/v2/override_values/index', object: smart_class_parameter.lookup_values) }
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
foreman_puppet-8.0.0 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-6.4.0 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-7.0.0 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-6.3.0 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-6.2.0 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-6.1.1 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-5.1.3 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-6.1.0 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-6.0.1 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-6.0.0 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-5.1.2 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-4.1.1 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-5.1.1 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-5.1.0 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-4.1.0 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-4.0.4 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-5.0.0 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-4.0.3 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-4.0.2 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-3.0.7 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl