Method: Padrino::Generators::Runner#git
- Defined in:
- padrino-gen/lib/padrino-gen/generators/runner.rb
#git(*args) ⇒ Object
Executes git commmands in project.
97 98 99 100 101 102 103 |
# File 'padrino-gen/lib/padrino-gen/generators/runner.rb', line 97 def git(*args) FileUtils.cd(destination_root) do cmd = format('git %s', args.join(' ')) say cmd, :green system cmd end end |