Class: Ptero::Generator::HTAccessGenerator

Inherits:
Ptero::Generator show all
Defined in:
lib/ptero/generators/htaccessgenerator.rb

Overview

Generate .htaccess files for apache routing

Instance Attribute Summary

Attributes inherited from Ptero::Generator

#app, #dir, #name

Instance Method Summary collapse

Methods inherited from Ptero::Generator

const_missing, #content, #content_params, #filename, #generate, #generated?, #location, #reload, #remove, #template_path, #to_s, #type

Constructor Details

#initializeHTAccessGenerator

This is a dotfile, there are no parameters, and the name is always “”



13
14
15
# File 'lib/ptero/generators/htaccessgenerator.rb', line 13

def initialize
  super ''
end

Instance Method Details

#extensionString

Returns “htaccess”.

Returns:

  • (String)

    “htaccess”



18
19
20
# File 'lib/ptero/generators/htaccessgenerator.rb', line 18

def extension
  'htaccess'
end

#pathString

Returns “www”.

Returns:

  • (String)

    “www”



23
24
25
# File 'lib/ptero/generators/htaccessgenerator.rb', line 23

def path
  'www'
end