lib/robotkit/cli.rb in robotkit-0.1.4 vs lib/robotkit/cli.rb in robotkit-0.1.5
- old
+ new
@@ -25,10 +25,10 @@
library_module = params[:library_module] || "library"
sample_module = params[:sample_module] || "sample"
# copy from fixtues dir to output dir
FileUtils.mkdir(output_dir)
- Dir.foreach(fixtures_dir).reject{|it| it.start_with?(".")}.each do |item|
+ Dir.foreach(fixtures_dir).reject{|it| it.start_with?(".") && it == ".gitignore"}.each do |item|
FileUtils.rm("#{output_dir}/#{item}", {force: true})
FileUtils.cp_r("#{fixtures_dir}/#{item}", "#{output_dir}/#{item}", {preserve: true, dereference_root: true})
end
# change sample module dir