Skip to content

Commit

Permalink
Rework project template for init command
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian Weber authored and Arian Weber committed Feb 8, 2024
1 parent 2d31aad commit e8e4719
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ NuSMV-*/
# rspec failure tracking
.rspec_status

/addon/
!./data/project-template/addon
/addon
out/
File renamed without changes.
Empty file.
File renamed without changes.
1 change: 1 addition & 0 deletions lib/pg-tools/cli/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def init()
files = Dir.glob(File.join(template_dir, '**', '*'), File::FNM_DOTMATCH).select { |f| File.file?(f) }
files.each { |f|
target_file = File.join(target, f.sub(template_dir, ""))
target_file = target_file.gsub(".resource", "")
FileUtils.mkdir_p(File.dirname(target))
FileUtils.cp(f, target) unless File.basename(f) == ".keep"
}
Expand Down

0 comments on commit e8e4719

Please sign in to comment.