Class: ThorTasks::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/thor_tasks.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



9
10
11
# File 'lib/thor_tasks.rb', line 9

def self.source_root
  @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'tasks'))
end

Instance Method Details

#copy_tasksObject



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