git(command={})
Run a command in git.
git :init git :add => "this.file that.rb" git :add => "onefile.rb", :rm => "badfile.cxx"
# File railties/lib/rails/generators/actions.rb, line 132 def git(command={}) if command.is_a?(Symbol) run "git #{command}" else command.each do |command, options| run "git #{command} #{options}" end end end