Sha256: 856f0f4636de919250cc32da7095230a1009422146bb0b98ac709bf3c2a17ed6
Contents?: true
Size: 631 Bytes
Versions: 27
Compression:
Stored size: 631 Bytes
Contents
module ForemanSalt module Concerns module SaltModuleParameters extend ActiveSupport::Concern class_methods do def salt_module_params_filter Foreman::ParameterFilter.new(::ForemanSalt::SaltEnvironment).tap do |filter| filter.permit(:name, :salt_environments => [], :salt_environment_ids => []) end end end def salt_module_params param_name = parameter_filter_context.api? ? 'state' : 'foreman_salt_salt_module' self.class.salt_module_params_filter.filter_params(params, parameter_filter_context, param_name) end end end end
Version data entries
27 entries across 27 versions & 1 rubygems