Class: ForemanPipeline::JenkinsProjectParam

Inherits:
Katello::Model
  • Object
show all
Includes:
Authorization::JenkinsProjectParam, Katello::Glue
Defined in:
app/models/foreman_pipeline/jenkins_project_param.rb

Constant Summary collapse

TYPES =
["string", "boolean", "text"]

Instance Method Summary collapse

Instance Method Details

#format_boolObject



15
16
17
# File 'app/models/foreman_pipeline/jenkins_project_param.rb', line 15

def format_bool
  self.value = self.value.sub(/^t$/, "true").sub(/^f$/, "false") if type == "boolean"
end