lib/gemsmith/skeletons/git_skeleton.rb in gemsmith-5.3.0 vs lib/gemsmith/skeletons/git_skeleton.rb in gemsmith-5.4.0

- old
+ new

@@ -1,17 +1,23 @@ module Gemsmith module Skeletons + # Configures Git support. class GitSkeleton < BaseSkeleton - def create_files - template "%gem_name%/Gemfile.tt", template_options + def create_ignore_file + cli.template "%gem_name%/.gitignore.tt", cli.template_options end def create_repository - Dir.chdir(File.join(destination_root, gem_name)) do + Dir.chdir(File.join(cli.destination_root, cli.gem_name)) do `git init` `git add .` `git commit --all --no-verify --message "Added Gemsmith skeleton."` end + end + + def create + create_ignore_file + create_repository end end end end