module Gitit::GitExecutor
Attributes
repo[R]
Public Class Methods
repo()
click to toggle source
# File lib/gitit/git_executor.rb, line 8 def self.repo @repo end
Public Instance Methods
execute_command(command)
click to toggle source
# File lib/gitit/git_executor.rb, line 12 def execute_command(command) git_command = ['git', command].join(' ') `(cd #{@repo.location} && #{git_command} 2>&1)` end