Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 49 lines (40 sloc) 1.3 kB
0345a1f re-wrote homebrew; no marker_file, but now a test
Brian Cunnie & Kevin Fitzpatrick authored
1 include_recipe "pivotal_workstation::user_owns_usr_local"
40ec225 Put /usr/local/bin first in path so that we execute the postgres
Brian Cunnie & Matthew Kocher authored
2 include_recipe "pivotal_workstation::bash_path_order"
88a75c9 new macs don't have a /usr/local dir
Kevin Fitzpatrick & Matthew DuVall authored
3
0345a1f re-wrote homebrew; no marker_file, but now a test
Brian Cunnie & Kevin Fitzpatrick authored
4 homebrew_git_revision_hash = version_string_for("homebrew")
3a9d0ce basic homebrew recipe
Pivotal Labs authored
5
2abbaae added comment to make sure we don't try to re-factor again
Brian Cunnie & Matthew Kocher authored
6 # Do not be tempted to use the git-resource to check out
7 # homebrew directly into /usr/local; it will fail if
14740d1 Strip all trailing whitespace from all files
Michael Schubert & Trace Wax authored
8 # it finds *anything* in /usr/local, and it will find
2abbaae added comment to make sure we don't try to re-factor again
Brian Cunnie & Matthew Kocher authored
9 # at least a bin directory because the user_owns_usr_local
10 # recipe creates it, and that's a pre-req. Also, things like
11 # MacFuse, Audacity, and others tend to put things in /usr/local
73335b1 Our attempt to make a cleaner homebrew recipe has failed ignominously.
Brian Cunnie & Matthew Kocher authored
12
519cf9d @mkocher one fewer foodcritic error
mkocher authored
13 directory Chef::Config[:file_cache_path] do
7bedbca Make sure the cache directory has the correct permissions before clon…
Michael Schubert & Trace Wax authored
14 action :create
15 recursive true
16 mode "0775"
17 owner "root"
18 group "staff"
19 end
20
20ddefa @mkocher Cleaning up, adding travis.yml for foodcritic.
mkocher authored
21 git "#{Chef::Config[:file_cache_path]}/homebrew" do
ca5920d @mkocher updating homebrew all the time (this might not be a great idea), and …
mkocher authored
22 repository "https://github.com/mxcl/homebrew.git"
23 revision homebrew_git_revision_hash
20ddefa @mkocher Cleaning up, adding travis.yml for foodcritic.
mkocher authored
24 destination "#{Chef::Config[:file_cache_path]}/homebrew"
ca5920d @mkocher updating homebrew all the time (this might not be a great idea), and …
mkocher authored
25 action :sync
26 end
27
28 execute "Copying homebrew's .git to /usr/local" do
20ddefa @mkocher Cleaning up, adding travis.yml for foodcritic.
mkocher authored
29 command "rsync -axSH #{Chef::Config[:file_cache_path]}/homebrew/ /usr/local/"
ca5920d @mkocher updating homebrew all the time (this might not be a great idea), and …
mkocher authored
30 user WS_USER
0345a1f re-wrote homebrew; no marker_file, but now a test
Brian Cunnie & Kevin Fitzpatrick authored
31 end
3a9d0ce basic homebrew recipe
Pivotal Labs authored
32
0345a1f re-wrote homebrew; no marker_file, but now a test
Brian Cunnie & Kevin Fitzpatrick authored
33 ruby_block "Check that homebrew is running & working" do
34 block do
35 `brew --version`
36 if $? != 0
37 raise "Couldn't find brew"
c52423c don't run stuff if you don't have to, because of marker files. also …
Pivotal Labs authored
38 end
3a9d0ce basic homebrew recipe
Pivotal Labs authored
39 end
40 end
0108140 always creating /usr/local/sbin/
Pivotal Labs authored
41
42 directory "/usr/local/sbin" do
43 owner WS_USER
40ec225 Put /usr/local/bin first in path so that we execute the postgres
Brian Cunnie & Matthew Kocher authored
44 end
5d90951 Create ~/Applications for homebrew
Grant Hutchins & Jeff Saracco authored
45
46 directory "/Users/#{WS_USER}/Applications" do
47 owner WS_USER
48 end
Something went wrong with that request. Please try again.