Sha256: 51c52f245065bbc77ff2092d6599132cd8225faa4af0aae043f5be7a0f917d96

Contents?: true

Size: 527 Bytes

Versions: 1

Compression:

Stored size: 527 Bytes

Contents

#
# Cookbook Name:: utils::profile
# Recipe:: default
#

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

execute "sourcing flombe profile for immediate usage" do
  command "source ~/.flombe.profile"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flombe-0.1.0.2 cookbooks/utils/recipes/dotfiles.rb