# frozen_string_literal: true module Gemsmith module Skeletons # Configures Git support. class GitSkeleton < BaseSkeleton def create_ignore_file cli.template "%gem_name%/.gitignore.tt", configuration.to_h end def create_repository Dir.chdir(File.join(cli.destination_root, configuration.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