Class: Thorgem

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/thorgem.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



22
23
24
25
# File 'lib/thorgem.rb', line 22

def self.source_root
  # template_path(__FILE__)
  File.expand_path(File.dirname(__FILE__) + '/../templates')
end

Instance Method Details

#mainObject



27
28
29
30
31
# File 'lib/thorgem.rb', line 27

def main
  create_jewel if options[:jewel]
  create_root if !options[:jewel] 
  main_flow
end