Sha256: 07f464eb9dd00dd7752740b702b02fbc561a93f60b1a19b928e1dca58f7ee0a3
Contents?: true
Size: 443 Bytes
Versions: 8
Compression:
Stored size: 443 Bytes
Contents
module Engineyard::Recipes module GitCmd class << self attr_accessor :test_mode end def self.git(command) if test_mode git_mock_log = File.expand_path("../../../tmp/git.log", __FILE__) File.open(git_mock_log, "a") { |file| file << command; file << "\n" } else `git #{command}` end end def git(command) Engineyard::Recipes::GitCmd.git(command) end end end
Version data entries
8 entries across 8 versions & 1 rubygems