Class: Rubysmith::Builders::Git::Commit

Inherits:
Abstract
  • Object
show all
Defined in:
lib/rubysmith/builders/git/commit.rb

Overview

Builds project skeleton initial Git commit message.

Instance Method Summary collapse

Methods inherited from Abstract

#initialize

Constructor Details

This class inherits a constructor from Rubysmith::Builders::Abstract

Instance Method Details

#callObject



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/rubysmith/builders/git/commit.rb', line 10

def call
  return false unless settings.build_git

  builder.call(settings)
         .run("git add .", chdir: project_name)
         .run(
           %(git commit --all --message "Added project skeleton" --message "#{body}"),
           chdir: project_name
         )

  true
end