Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Working

  • Loading branch information...
commit 77ce20a3e63918dfc96605808b3b309e086f226e 1 parent 5051541
@xaviershay authored
Showing with 56 additions and 4 deletions.
  1. +12 −0 apps.rb
  2. +20 −4 me.rb
  3. +1 −0  repos.rb
  4. +10 −0 ruby.rb
  5. +13 −0 rvm.rb
View
12 apps.rb
@@ -41,3 +41,15 @@
app 'Alfred.app' do
source 'http://media.alfredapp.com/alfred_0.6.2_beta_23.dmg'
end
+
+app 'Growl.app' do
+ source 'http://growl.cachefly.net/Growl-1.2.dmg'
+end
+
+app 'Dropbox.app' do
+ source 'https://www.dropbox.com/download?plat=mac'
+end
+
+app 'Things.app' do
+ source 'http://culturedcode.com/things/download/?e=3102'
+end
View
24 me.rb
@@ -2,7 +2,7 @@
dep 'the whole damn lot' do
requires(
- 'private key',
+ 'ssh key',
'user shell setup',
#'colemak',
'fonts',
@@ -14,6 +14,9 @@
#'Thunderbird.app',
'Skype.app',
'Gnucash.app',
+ 'Alfred.app',
+ 'Growl.app',
+ 'Dropbox.app',
'music copied',
'documents copied',
@@ -38,11 +41,24 @@
end
-dep 'private key' do
- met? { File.exists?(ENV['HOME'] / ".ssh/id_rsa") }
+dep 'ssh keys' do
+ met? {
+ File.exists?(ENV['HOME'] / ".ssh/id_rsa") &&
+ File.exists?(ENV['HOME'] / ".ssh/id_rsa.pub")
+ }
meet {
shell %Q{mkdir -p ~/.ssh}
- shell %Q{scp #{var :old_machine}:.ssh/id_rsa .ssh/id_rsa}
+ shell %Q{scp #{var :old_machine}:~/.ssh/id_rsa* ~/.ssh/}
+ }
+end
+
+dep 'things' do
+ helper(:path) { %Q{~/Library/Application Support/Cultured Code/Things/database.xml} }
+
+ met? { File.exist?(path.p.expand_path.to_s) }
+ meet {
+ shell %Q{mkdir -p "#{File.dirname(path)}"}
+ shell %Q{scp #{var :old_machine}:"#{path.gsub(' ', '\\\\\\ ')}" #{path.gsub(' ', '\\\\ ')}}
}
end
View
1  repos.rb
@@ -3,6 +3,7 @@
sites
thehunge
geeksheets
+ two-shay
)
os = %w(
View
10 ruby.rb
@@ -0,0 +1,10 @@
+dep 'rubygems' do
+ met? {
+ shell("gem -v") == '1.3.7' # TODO: Get latest version from somewhere
+ }
+ meet {
+ shell "sudo gem update --system"
+ }
+end
+
+pkg 'coffee-script'
View
13 rvm.rb
@@ -0,0 +1,13 @@
+dep 'rvm' do
+ met? {
+ "~/.config/fish/functions/rvm.fish".p.expand_path.exist?
+ }
+ meet {
+ shell %Q{bash -c "`curl http://rvm.beginrescueend.com/releases/rvm-install-head`"}
+
+ github = "http://github.com/eventualbuddha/fish-nuggets/raw/master/functions"
+ shell "curl --create-dirs -o ~/.config/fish/functions/__bash_env_to_fish.fish #{github}/__bash_env_to_fish.fish"
+ shell "curl -o ~/.config/fish/functions/rvm.fish #{github}/rvm.fish"
+ shell "curl -o ~/.config/fish/functions/cd.fish #{github}/cd.fish"
+ }
+end
Please sign in to comment.
Something went wrong with that request. Please try again.