Sha256: 01a96b1b7d6b871bd1ef34150d7daa6a34ee28087ac0301567eada50e595a550

Contents?: true

Size: 211 Bytes

Versions: 5

Compression:

Stored size: 211 Bytes

Contents

require 'shellwords'

module ForemanTemplates
  module TemplateExtensions
    extend ActiveSupport::Concern

    def template_file
      Shellwords.escape("#{name.downcase.tr(' /', '_')}.erb")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_templates-10.0.2 app/models/concerns/foreman_templates/template_extensions.rb
foreman_templates-10.0.1 app/models/concerns/foreman_templates/template_extensions.rb
foreman_templates-10.0.0 app/models/concerns/foreman_templates/template_extensions.rb
foreman_templates-9.5.1 app/models/concerns/foreman_templates/template_extensions.rb
foreman_templates-9.5.0 app/models/concerns/foreman_templates/template_extensions.rb