lib/rubysmith/builders/git/commit.rb in rubysmith-6.10.0 vs lib/rubysmith/builders/git/commit.rb in rubysmith-7.0.0
- old
+ new
@@ -5,34 +5,30 @@
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
+ return false unless settings.build_git
- builder.call(configuration)
+ builder.call(settings)
.run("git add .", chdir: project_name)
.run(
%(git commit --all --message "Added project skeleton" --message "#{body}"),
chdir: project_name
)
- configuration
+ true
end
private
def body
"Generated with link:#{specification.homepage_url}[#{specification.label}] " \
"#{specification.version}."
end
- def project_name = configuration.project_name
+ def project_name = settings.project_name
end
end
end
end