Module: ProcessIt::Setup
- Defined in:
- lib/processit/setup.rb
Instance Method Summary collapse
Instance Method Details
#setup ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/processit/setup.rb', line 3 def setup Dir.mkdir(@base_dir) unless File.exists?(@base_dir) Dir[File.join(File.dirname(__FILE__), "..", "templates", "project", "*")].each do |template| begin FileUtils.cp_r(template, @base_dir) rescue Errno::EEXIST # ignore - template exists end end puts "Done" end |