Sha256: da4e99ad25187777c569605b60d628f043f34be85fb610d928c5b7f13004c123
Contents?: true
Size: 652 Bytes
Versions: 27
Compression:
Stored size: 652 Bytes
Contents
module ForemanSalt module Concerns module SaltEnvironmentParameters extend ActiveSupport::Concern class_methods do def salt_environment_params_filter Foreman::ParameterFilter.new(::ForemanSalt::SaltEnvironment).tap do |filter| filter.permit(:name, :salt_modules => [], :salt_module_ids => []) end end end def salt_environment_params param_name = parameter_filter_context.api? ? 'environment' : 'foreman_salt_salt_environment' self.class.salt_environment_params_filter.filter_params(params, parameter_filter_context, param_name) end end end end
Version data entries
27 entries across 27 versions & 1 rubygems