Sha256: 488558564353c919d69e5c953757c42f002d13d6480db8c29ef171ce369d2fab

Contents?: true

Size: 681 Bytes

Versions: 9

Compression:

Stored size: 681 Bytes

Contents

#
# Cookbook Name:: utils
# Recipe:: dotfiles
#

template "#{ENV['HOME']}/.flombe.profile" do
  mode   0700
  owner  ENV['USER']
  group  Etc.getgrgid(Process.gid).name
  source "dot.profile.erb"
  variables({ :home => ENV['HOME'] })
end

execute "setup flombe profile sourcing in ~/.bash_profile" do
  command "echo 'source ~/.flombe.profile' >> ~/.bash_profile"
  not_if  "grep -q 'flombe.profile' ~/.bash_profile"
end

template "#{ENV['HOME']}/.gitignore" do
  mode   0700
  owner  ENV['USER']
  group  Etc.getgrgid(Process.gid).name
  source "dot.gitignore.erb"
end

execute "set global ignore file for git" do
  command "git config --global core.excludesfile ~/.gitignore"
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
flombe-0.1.0.12 cookbooks/utils/recipes/dotfiles.rb
flombe-0.1.0.11 cookbooks/utils/recipes/dotfiles.rb
flombe-0.1.0.10 cookbooks/utils/recipes/dotfiles.rb
flombe-0.1.0.9 cookbooks/utils/recipes/dotfiles.rb
flombe-0.1.0.8 cookbooks/utils/recipes/dotfiles.rb
flombe-0.1.0.7 cookbooks/utils/recipes/dotfiles.rb
flombe-0.1.0.6 cookbooks/utils/recipes/dotfiles.rb
flombe-0.1.0.5 cookbooks/utils/recipes/dotfiles.rb
flombe-0.1.0.4 cookbooks/utils/recipes/dotfiles.rb