Skip to content

Commit

Permalink
Rakefile: Create backup and temp folders.
Browse files Browse the repository at this point in the history
  • Loading branch information
kalbasit committed Nov 2, 2011
1 parent d210761 commit d07d8ea
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
# ViM files
_backup
_temp
18 changes: 18 additions & 0 deletions 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
Expand All @@ -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"
Expand Down

0 comments on commit d07d8ea

Please sign in to comment.