Method: PDK::Module::Update#new_template_version

Defined in:
lib/pdk/module/update.rb

#new_template_versionObject



67
68
69
70
71
72
73
74
75
# File 'lib/pdk/module/update.rb', line 67

def new_template_version
  return options[:'template-ref'] if options[:'template-ref']

  if template_uri.default? && PDK::Util::Git.tag?(template_uri.bare_uri, template_uri.uri_fragment) && PDK::Util.package_install?
    PDK::Util::TemplateURI.default_template_ref
  else
    template_uri.uri_fragment
  end
end