Class: ForemanPuppet::Api::V2::OverrideValuesController
Instance Method Summary
collapse
#cast_default_value, #cast_value, #find_smart_class_parameter, #find_smart_class_parameters, #return_if_smart_mismatch, #smart_class_parameters_resource_scope
Instance Method Details
#create ⇒ Object
47
48
49
50
51
|
# File 'app/controllers/foreman_puppet/api/v2/override_values_controller.rb', line 47
def create
@override_value = @smart_class_parameter.lookup_values.create!(lookup_value_params)
@smart_class_parameter.update(override: true)
process_response @override_value
end
|
#destroy ⇒ Object
66
67
68
69
|
# File 'app/controllers/foreman_puppet/api/v2/override_values_controller.rb', line 66
def destroy
@override_value.destroy
render 'foreman_puppet/api/v2/override_values/show'
end
|
#index ⇒ Object
24
25
|
# File 'app/controllers/foreman_puppet/api/v2/override_values_controller.rb', line 24
def index
end
|
#show ⇒ Object
32
33
|
# File 'app/controllers/foreman_puppet/api/v2/override_values_controller.rb', line 32
def show
end
|
#update ⇒ Object
57
58
59
60
|
# File 'app/controllers/foreman_puppet/api/v2/override_values_controller.rb', line 57
def update
@override_value.update!(lookup_value_params)
render 'foreman_puppet/api/v2/override_values/show'
end
|