Skip to content
Browse files

Rakefile: Create backup and temp folders.

  • Loading branch information...
1 parent d210761 commit d07d8ead4f901cb210461888fa66cbccf2d73caf @kalbasit kalbasit committed Nov 2, 2011
Showing with 21 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +18 −0 Rakefile
View
3 .gitignore
@@ -0,0 +1,3 @@
+# ViM files
+_backup
+_temp
View
18 Rakefile
@@ -1,3 +1,14 @@
+module Janus
+ module VIM
+ extend self
+
+ # Folders
+ def folders
+ %w[ _backup _temp ]
+ end
+ end
+end
+
def expand(file)
File.expand_path(file)
end
@@ -10,6 +21,13 @@ task expand("~/.gvimrc") => "gvimrc" do
sh "ln -s ~/.vim/gvimrc ~/.gvimrc"
end
+desc "Create necessary folders."
+task :folders do
+ Janus::VIM.folders.each do |folder|
+ mkdir_p folder
+ end
+end
+
task :update do
sh "git pull"
sh "git submodule init"

0 comments on commit d07d8ea

Please sign in to comment.
Something went wrong with that request. Please try again.