Sha256: 10332c3ddad04db44f1d06d066f79417d296896f20390d4521ecd9a2011596a9
Contents?: true
Size: 750 Bytes
Versions: 1
Compression:
Stored size: 750 Bytes
Contents
module Overapp class Git class << self def commit_inner(output_path,message,init,&b) res = nil res = yield if block_given? if init `rm -rf #{output_path}/.git` ec "cd #{output_path} && git init && git config user.email johnsmith@fake.com && git config user.name 'John Smith'", :silent => true end ec "cd #{output_path} && git add . && git commit -m '#{message}'", :silent => true res end def commit(output_path,message,&b) init = !FileTest.exist?("#{output_path}/.git") commit_inner(output_path,message,init,&b) end def repo?(path) path =~ /\.git/ || path =~ /file:\/\// || path =~ /git:\/\// end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
overapp-0.4.0 | lib/overapp/util/git.rb |