Module: ForemanGitTemplates::HostExtensions

Extended by:
ActiveSupport::Concern
Defined in:
app/models/concerns/foreman_git_templates/host_extensions.rb

Instance Method Summary collapse

Instance Method Details

#repository_klassObject



11
12
13
# File 'app/models/concerns/foreman_git_templates/host_extensions.rb', line 11

def repository_klass
  build? ? MainRepositoryTemplate : DefaultLocalBootRepositoryTemplate
end

#repository_pathObject



15
16
17
18
19
# File 'app/models/concerns/foreman_git_templates/host_extensions.rb', line 15

def repository_path
  return unless git_template_url

  git_template_tmpfile&.path
end