Module: Tonic::Template

Defined in:
lib/tonic/template.rb

Class Method Summary collapse

Class Method Details

.create(name = "") ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/tonic/template.rb', line 5

def create(name = "")
  if name.empty?
    copy_template
  else
    sh "mkdir #{name}"
    copy_template(name)
  end

  log_files
  bundle_install(name)
end