Sha256: d507c135eb3971a89af4cf29fa0b99c5fb6cfe2e42d270c4f026e932e97c9c7b
Contents?: true
Size: 381 Bytes
Versions: 2
Compression:
Stored size: 381 Bytes
Contents
module StaticMatic::SetupMixin 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
staticmatic3-2.1.10 | lib/staticmatic/mixins/setup.rb |
staticmatic3-2.1.9 | lib/staticmatic/mixins/setup.rb |