Class: Rubysmith::Builders::Git::Setup

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

Overview

Initializes project skeleton as a Git repository.

Instance Method Summary collapse

Methods inherited from Abstract

#initialize

Constructor Details

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

Instance Method Details

#callObject



8
9
10
11
12
13
# File 'lib/rubysmith/builders/git/setup.rb', line 8

def call
  return false unless settings.build_git

  builder.call(settings).run("git init", chdir: settings.project_name)
  true
end