Class: ForemanPuppet::InputType::PuppetParameterInput
- Inherits:
-
InputType::Base
- Object
- InputType::Base
- ForemanPuppet::InputType::PuppetParameterInput
- Defined in:
- app/services/foreman_puppet/input_type/puppet_parameter_input.rb
Defined Under Namespace
Classes: Resolver
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.humanized_name ⇒ Object
23 24 25 |
# File 'app/services/foreman_puppet/input_type/puppet_parameter_input.rb', line 23 def self.humanized_name _('Puppet parameter') end |
Instance Method Details
#validate(input) ⇒ Object
29 30 31 32 |
# File 'app/services/foreman_puppet/input_type/puppet_parameter_input.rb', line 29 def validate(input) input.errors.add(:puppet_class_name, :blank) if input.puppet_class_name.blank? input.errors.add(:puppet_parameter_name, :blank) if input.puppet_parameter_name.blank? end |