Class: Rubysmith::Builders::Git::Commit
- Inherits:
-
Object
- Object
- Rubysmith::Builders::Git::Commit
- Defined in:
- lib/rubysmith/builders/git/commit.rb
Overview
Builds project skeleton initial Git commit message.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(configuration, builder: Builder) ⇒ Commit
constructor
A new instance of Commit.
Constructor Details
Class Method Details
.call ⇒ Object
10 |
# File 'lib/rubysmith/builders/git/commit.rb', line 10 def self.call(...) = new(...).call |
Instance Method Details
#call ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/rubysmith/builders/git/commit.rb', line 18 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 |