Class/Module Index [+]

Quicksearch

HammerCLIForeman::Template::TemplateCreateUpdateCommons

Public Instance Methods

option_snippet() click to toggle source
# File lib/hammer_cli_foreman/template.rb, line 9
def option_snippet
  option_type == "snippet"
end
option_template_kind_id() click to toggle source
# File lib/hammer_cli_foreman/template.rb, line 13
def option_template_kind_id
  kinds = HammerCLIForeman.collection_to_common_format(
    HammerCLIForeman.foreman_resource!(:template_kinds).call(:index))
  table = kinds.inject({}){ |result, k| result.update(k["name"] => k["id"]) }
  table[option_type]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.