Sha256: 901a30cc367b6278a3c6e2e5f889461fcc565bdd50121fe5fd248cc9745d8eb1
Contents?: true
Size: 928 Bytes
Versions: 7
Compression:
Stored size: 928 Bytes
Contents
module EacLauncher module Git class Base < ::EacLauncher::Path module Underlying def execute!(*args) args, options = build_args(args) ::EacRubyUtils::Envs.local.command(*args).execute!(options) end def system!(*args) args, options = build_args(args) ::EacRubyUtils::Envs.local.command(*args).system!(options) end private def build_args(args) options = {} if args.last.is_a?(Hash) options = args.last args.pop end args = args.first if args.first.is_a?(Array) [['git', '-C', self, '--no-pager'] + args, options] end def git_uncached FileUtils.mkdir_p(self) if File.exist?(subpath('.git')) ::Git.open(self) else ::Git.init(self) end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems