forked from argent-smith/dotvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
30 lines (25 loc) · 808 Bytes
/
Rakefile
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
require 'rake'
desc "Default"
task :default => :setup do
puts "The directories are set up successfully"
end
desc "Setting up the plugins' directories"
task :setup => ["bundles:update", "bundles:snipmate", "bundles:pathogen", "bundles:gemmed:install"]
# A convenience stub
desc "Update the installed plugins"
task :update => ["bundles:update", "bundles:snipmate", "bundles:pathogen", "bundles:gemmed:update"]
desc "Remove all generated/downloaded content"
task :distclean => "bundles:gemmed:cleanup" do
puts 'Removing the generated content:'
['bundle', File.join('autoload', 'pathogen.vim')].each do |d|
puts " -> #{d}"
begin
remove_entry_secure d
rescue
end
end
end
desc "Rebuild everything"
task :reinit => [:distclean, :setup] do
puts "Your setup is now rebuilt"
end