module Rails::Generators::Actions

def git(commands = {})


# => runs `git add good.rb; git rm bad.cxx`
git add: "good.rb", rm: "bad.cxx"

# => runs `git commit -m 'First commit'`
git commit: "-m 'First commit'"

# => runs `git add this.file that.rb`
git add: "this.file that.rb"

# => runs `git init`
git :init

Runs one or more git commands.
def git(commands = {})
  if commands.is_a?(Symbol)
    run "git #{commands}"
  else
    commands.each do |cmd, options|
      run "git #{cmd} #{options}"
    end
  end
end