Sha256: a75c7b17b39fc2cdcdac418cc169ffeea6771f5049f60a5237c912f5fa75e7c6
Contents?: true
Size: 653 Bytes
Versions: 2
Compression:
Stored size: 653 Bytes
Contents
# frozen_string_literal: true module Rubysmith module Builders module Git # Initializes project skeleton as a Git repository. class Setup def self.call(configuration, builder: Builder) = new(configuration, builder: builder).call def initialize configuration, builder: Builder @configuration = configuration @builder = builder end def call return unless configuration.build_git builder.call(configuration).run("git init", chdir: configuration.project_name) end private attr_reader :configuration, :builder end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysmith-0.11.0 | lib/rubysmith/builders/git/setup.rb |
rubysmith-0.10.0 | lib/rubysmith/builders/git/setup.rb |