Class: Source
- Inherits:
-
Erebus::NamedGenerator
- Object
- Thor::Group
- Erebus::Generator
- Erebus::NamedGenerator
- Source
- Defined in:
- lib/erebus/generators/source.rb
Class Method Summary collapse
-
.source_root ⇒ Object
validate_project.
Instance Method Summary collapse
Methods inherited from Erebus::Generator
Class Method Details
.source_root ⇒ Object
validate_project
10 11 12 |
# File 'lib/erebus/generators/source.rb', line 10 def self.source_root File.dirname(__FILE__) end |
Instance Method Details
#create_source_file ⇒ Object
14 15 16 17 |
# File 'lib/erebus/generators/source.rb', line 14 def create_source_file Source.validate_project template "templates/blank.erb", "src/#{file_name}.#{ext}" end |