Sha256: 9864e40e6403375a08da4743f211fcad4a5a0111e62d32e5c600de665d1173c5
Contents?: true
Size: 589 Bytes
Versions: 8
Compression:
Stored size: 589 Bytes
Contents
# 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
Version data entries
8 entries across 8 versions & 1 rubygems