From a89aa3d945e636a0bb02c5e9367073042dd82279 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Sat, 26 Dec 2015 15:22:13 -0800 Subject: [PATCH] Create symbolic link for work files --- Rakefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index 055b229..ad06dad 100644 --- a/Rakefile +++ b/Rakefile @@ -31,7 +31,8 @@ task :install do end end - setup_personal_folder + setup_some_folder "Where are your personal files?", "~/.personal-files" + setup_some_folder "Where are your work files?", "~/.work-files" setup_temp_folder setup_work_aliases @@ -57,10 +58,10 @@ def link_file(source, dest) system %Q{ln -s #{source} #{dest}} end -def setup_personal_folder - puts "Where are your personal files?" +def setup_some_folder(msg, file_name) + puts msg dir = $stdin.gets.chomp - link_file dir, "~/.personal-files" + link_file dir, file_name end def setup_temp_folder