Class: Ptero::Generator::HTAccessGenerator
- Inherits:
-
Ptero::Generator
- Object
- Ptero::Generator
- Ptero::Generator::HTAccessGenerator
- Defined in:
- lib/ptero/generators/htaccessgenerator.rb
Overview
Generate .htaccess files for apache routing
Constant Summary
Constants inherited from Ptero::Generator
Instance Attribute Summary
Attributes inherited from Ptero::Generator
Instance Method Summary collapse
-
#extension ⇒ String
“htaccess”.
-
#initialize ⇒ HTAccessGenerator
constructor
This is a dotfile, there are no parameters, and the name is always “”.
-
#path ⇒ String
“www”.
Methods inherited from Ptero::Generator
const_missing, #content, #content_params, #filename, #generate, #generated?, #location, #reload, #remove, #template_path, #to_s, #type
Constructor Details
#initialize ⇒ HTAccessGenerator
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
#extension ⇒ String
Returns “htaccess”.
18 19 20 |
# File 'lib/ptero/generators/htaccessgenerator.rb', line 18 def extension 'htaccess' end |
#path ⇒ String
Returns “www”.
23 24 25 |
# File 'lib/ptero/generators/htaccessgenerator.rb', line 23 def path 'www' end |