Module: Engineyard::Recipes::GitCmd
- Included in:
- FetchUri
- Defined in:
- lib/engineyard-recipes/git_cmd.rb
Class Attribute Summary collapse
-
.test_mode ⇒ Object
Returns the value of attribute test_mode.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.test_mode ⇒ Object
Returns the value of attribute test_mode.
4 5 6 |
# File 'lib/engineyard-recipes/git_cmd.rb', line 4 def test_mode @test_mode end |
Class Method Details
.git(command) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/engineyard-recipes/git_cmd.rb', line 7 def self.git(command) if test_mode git_mock_log = File.("../../../tmp/git.log", __FILE__) File.open(git_mock_log, "a") { |file| file << command; file << "\n" } else `git #{command}` end end |
Instance Method Details
#git(command) ⇒ Object
16 17 18 |
# File 'lib/engineyard-recipes/git_cmd.rb', line 16 def git(command) Engineyard::Recipes::GitCmd.git(command) end |