Class: DaimonSkycrawlers::Generator::Processor
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- DaimonSkycrawlers::Generator::Processor
- Includes:
- Thor::Actions
- Defined in:
- lib/daimon_skycrawlers/generator/processor.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
10 11 12 |
# File 'lib/daimon_skycrawlers/generator/processor.rb', line 10 def self.source_root File.join(__dir__, "templates") end |
Instance Method Details
#create_files ⇒ Object
14 15 16 17 18 19 |
# File 'lib/daimon_skycrawlers/generator/processor.rb', line 14 def create_files config = { class_name: name.classify, } template("processor.rb.erb", "app/processors/#{name.underscore}.rb", config) end |