Sha256: 09391cf5d4506efe6f0fab49f9d96f9a3587ca02e079b2c7275428de31153d11
Contents?: true
Size: 550 Bytes
Versions: 3
Compression:
Stored size: 550 Bytes
Contents
module Gemsmith module Skeletons # Configures Git support. class GitSkeleton < BaseSkeleton def create_ignore_file cli.template "%gem_name%/.gitignore.tt", cli.template_options end def create_repository 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-5.6.0 | lib/gemsmith/skeletons/git_skeleton.rb |
gemsmith-5.5.0 | lib/gemsmith/skeletons/git_skeleton.rb |
gemsmith-5.4.0 | lib/gemsmith/skeletons/git_skeleton.rb |