Sha256: f7ec1001e44672f336aefd75891880a75d0bb6cdaace52c9638ef681fe0f0cde
Contents?: true
Size: 742 Bytes
Versions: 2
Compression:
Stored size: 742 Bytes
Contents
# # Cookbook Name:: git # Recipe:: default # root = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "homebrew")) require root + '/resources/homebrew' require root + '/providers/homebrew' require 'etc' template "#{ENV['HOME']}/.gitconfig" do mode 0700 owner ENV['USER'] group Etc.getgrgid(Process.gid).name source "dot.gitconfig.erb" variables({ :home => ENV['HOME'], :user => ENV['USER'], :email => ENV['EMAIL'], :github_user => ENV['GITHUB_USER'], :github_token => ENV['GITHUB_TOKEN'], :editor => ENV['EDITOR'] || fail("No editor set for your ~/.gitconfig"), :fullname => ENV['FULLNAME'] || fail("No Full Name set for your ~/.gitconfig") }) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
megalodon-0.1.1 | cookbooks/git/recipes/default.rb |
megalodon-0.1.0 | cookbooks/git/recipes/default.rb |