Sha256: db2313fb405e689f0228de4ef633f6624d614b44a3d6bb36626f287dcbe69d0e

Contents?: true

Size: 211 Bytes

Versions: 14

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

14 entries across 14 versions & 1 rubygems

Version Path
foreman_templates-9.3.3 app/models/concerns/foreman_templates/template_extensions.rb
foreman_templates-9.3.2 app/models/concerns/foreman_templates/template_extensions.rb
foreman_templates-9.3.1 app/models/concerns/foreman_templates/template_extensions.rb
foreman_templates-9.4.0 app/models/concerns/foreman_templates/template_extensions.rb
foreman_templates-9.3.0 app/models/concerns/foreman_templates/template_extensions.rb
foreman_templates-9.2.0 app/models/concerns/foreman_templates/template_extensions.rb
foreman_templates-9.1.0 app/models/concerns/foreman_templates/template_extensions.rb
foreman_templates-9.0.2 app/models/concerns/foreman_templates/template_extensions.rb
foreman_templates-9.0.1 app/models/concerns/foreman_templates/template_extensions.rb
foreman_templates-9.0.0 app/models/concerns/foreman_templates/template_extensions.rb
foreman_templates-7.0.7 app/models/concerns/foreman_templates/template_extensions.rb
foreman_templates-8.0.0 app/models/concerns/foreman_templates/template_extensions.rb
foreman_templates-7.0.6 app/models/concerns/foreman_templates/template_extensions.rb
foreman_templates-7.0.5 app/models/concerns/foreman_templates/template_extensions.rb