Sha256: b4e242604c6943d007ba13ec4e2afad362cebddedfea8d29a16b7866d133306c
Contents?: true
Size: 706 Bytes
Versions: 2
Compression:
Stored size: 706 Bytes
Contents
# frozen_string_literal: true module Gemsmith module Generators # Generates Git support. class Git < Base def create_ignore_file template "%gem_name%/.gitignore.tt" end def create_repository create_commit "Added gem skeleton.", "Built with [#{Identity.label}](#{Identity.url}) #{Identity.version}." end def run create_ignore_file create_repository end private def create_commit subject, body Dir.chdir gem_root do `git init` `git add .` `git commit --all --no-verify --message "#{subject}" --message "#{body}"` end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-13.6.0 | lib/gemsmith/generators/git.rb |
gemsmith-13.5.0 | lib/gemsmith/generators/git.rb |