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-1.0.1 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-1.0.0 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-1.0.0.rc.2 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-1.0.0.rc.1 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-0.1.0 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-0.0.2 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
foreman_puppet-0.0.1 app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl