Sha256: d5f0c8a7cbc546bec4c28024a3553b273faecdcb96cd3ff2ee36de289f6fb051
Contents?: true
Size: 515 Bytes
Versions: 6
Compression:
Stored size: 515 Bytes
Contents
# frozen_string_literal: true module Gemsmith module Generators # Generates Git support. class Git < Base def create_ignore_file cli.template "%gem_name%/.gitignore.tt", configuration end def create_repository Dir.chdir(gem_root) do `git init` `git add .` `git commit --all --no-verify --message "Added Gemsmith files."` end end def run create_ignore_file create_repository end end end end
Version data entries
6 entries across 6 versions & 1 rubygems