Class: ThorTasks::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ThorTasks::InstallGenerator
- Defined in:
- lib/thor_tasks.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
9 10 11 |
# File 'lib/thor_tasks.rb', line 9 def self.source_root @source_root ||= File.(File.join(File.dirname(__FILE__), 'tasks')) end |
Instance Method Details
#copy_tasks ⇒ Object
13 14 15 16 |
# File 'lib/thor_tasks.rb', line 13 def copy_tasks copy_file "spec.thor", "lib/tasks/spec.thor" copy_file "spork.thor", "lib/tasks/spork.thor" end |