Sha256: 2328b01614f8ab02406a0d5e593e8d36d42b675d826a9b69b01fb3d57b1228c9
Contents?: true
Size: 944 Bytes
Versions: 2
Compression:
Stored size: 944 Bytes
Contents
# frozen_string_literal: true module Rubysmith module Builders module Git # Builds project skeleton initial Git commit message. class Commit < Abstract include Import[:specification] def initialize(configuration, builder: Builder, **) super end def call return configuration unless configuration.build_git builder.call(configuration) .run("git add .", chdir: project_name) .run( %(git commit --all --message "Added project skeleton" --message "#{body}"), chdir: project_name ) configuration end private def body "Generated with link:#{specification.homepage_url}[#{specification.label}] " \ "#{specification.version}." end def project_name = configuration.project_name end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysmith-6.10.0 | lib/rubysmith/builders/git/commit.rb |
rubysmith-6.9.0 | lib/rubysmith/builders/git/commit.rb |