public
Description: Script to setup a new Leopard machine (auto-install all software, setup dot-files, sake tasks, install gems, etc)
Homepage:
Clone URL: git://github.com/bjeanes/noober.git
noober / TODO
100644 53 lines (41 sloc) 1.746 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# TODO:
# Note install all browsers plus firefox plugins (firebug, web developer, greasemonkey, etc)
# setup textmate prefs (TM_XHTML, TM_ORGANIZATION_NAME, etc)
# skitch should be installed
# bonjour should be enabled and auto-connect on startup
 
# the rest needs refactoring elsewhere into recipes
 
Dir.cd($ENV['HOME'])
 
# Update rubygems to 1.2.0
system('gem update --system')
 
# Install some base gems
gem_install('ParseTree', '2.1.1')
gem_install('ruby2ruby', '1.1.8')
gem_install(%w{sake hpricot rspec Shoulda newgem newjs rbiphonetest ZenTest capistrano capistrano-ext find_gem rails rb-appscript test-parser rubyforge})
 
# Install all the Rails versions we might need
%w{2.0.0 2.0.1 2.0.2 2.0.4 2.1.0 2.1.1}.each do |version|
  gem_install('rails', version)
end
 
# The following is gem_install_from_github:
 
# We want to manually install gem Deprec gem here
system("git clone git://github.com/mbailey/deprec.git")
Dir.cd("deprec")
system("gem build deprec.gemspec && gem install deprec*.gem")
Dir.cd("..")
FileUtils.rm_r("deprec")
 
# Install all our apps from the apps/ directory
app_install %w{
  TextMate.dmg MySQL.pkg MacPorts.pkg
  Git.pkg Quicksilver.dmg Mailplane.dmg
  Fluid.dmg PostgreSQL.pkg XCode.dmg
}
 
# Now that XCode is installed, we need to set up some options
#system(%q{defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions ' { "ORGANIZATIONNAME" = "Dr Nic Academy Pty Ltd"; } '})
 
# Once PostgreSQL is installed
gem_install('postgres')
 
 
# Setup TextMate bundles
bundle_dir = "~/Library/Application Support/TextMate/Bundles/"
FileUtils.mkdir_p(bundle_dir)
Dir.cd(bundle_dir)
system("git clone git://github.com/bjeanes/tmbundle-collection.git ./")
system("git submodule update --init")
Dir.cd($ENV['HOME'])