Sha256: 9859695c6e34dadb9e11f1ee0c4b7ac0bb4d6202fd6c93e2097e5f88970c1de1
Contents?: true
Size: 433 Bytes
Versions: 5
Compression:
Stored size: 433 Bytes
Contents
module SwiftLibTemplater class InitializeGitRepositoryCommand def initialize(dir) @dir = dir end def execute() Dir.chdir(@dir) systemWithoutOutput "git init ." systemWithoutOutput "git commit -m 'Initial commit' --allow-empty" systemWithoutOutput "git checkout -b develop" systemWithoutOutput "git add ." systemWithoutOutput "git commit -m 'Initial import'" end end end
Version data entries
5 entries across 5 versions & 1 rubygems