Class: Jasnode::Init

Inherits:
Object
  • Object
show all
Defined in:
lib/jasnode/core.rb

Class Method Summary collapse

Class Method Details

.template(projectname) ⇒ Object



174
175
176
177
# File 'lib/jasnode/core.rb', line 174

def self.template(projectname)
  template_base = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'templates'))
  FileUtils.cp_r("#{template_base}/.", "#{projectname}")
end