Sha256: 6238acccc1283a22c6aab087e8dc823fd8080a809107ce02cf1164075db9a523
Contents?: true
Size: 629 Bytes
Versions: 6
Compression:
Stored size: 629 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_dir) do `git init` `git add .` `git commit --all --no-verify --message "Added Gemsmith files."` end end def run create_ignore_file create_repository end private def gem_dir File.join cli.destination_root, configuration.dig(:gem, :name) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems