Sha256: 1b81b52457b240d8991986ebf2d88673b2c8c0875603dbfb03f6e1a7d8bda742

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 Bytes

Contents

module Gemsmith
  module Skeletons
    class GitSkeleton < BaseSkeleton
      def create_files
        template "%gem_name%/Gemfile.tt", template_options
      end

      def create_repository
        Dir.chdir(File.join(destination_root, gem_name)) do
          `git init`
          `git add .`
          `git commit --all --no-verify --message "Added Gemsmith skeleton."`
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gemsmith-5.3.0 lib/gemsmith/skeletons/git_skeleton.rb