Module: Black::Git
- Defined in:
- lib/black/git.rb
Defined Under Namespace
Classes: Diff, Repository
Class Method Summary collapse
-
.execute(path, *command_args) ⇒ Object
wrapper to execute git in the shell.
Class Method Details
.execute(path, *command_args) ⇒ Object
wrapper to execute git in the shell. Reimplement this to suit your own platform needs
7 8 9 10 11 |
# File 'lib/black/git.rb', line 7 def self.execute(path, *command_args) FileUtils.cd(path) do return `git #{ command_args.join(' ') } --no-color` end end |