class HammerCLIForeman::Template::ListCommand

Public Instance Methods

extend_data(tpl) click to toggle source
# File lib/hammer_cli_foreman/template.rb, line 25
def extend_data(tpl)
  if tpl["snippet"]
    tpl["type"] = "snippet"
  elsif tpl["template_kind"]
    tpl["type"] = tpl["template_kind"]["name"]
  else
    tpl["type"] = tpl["template_kind_name"]
  end
  tpl
end