-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
53 lines (45 loc) · 1.47 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
=begin
Before running the Rakefile, ensure that the following are installed on your system:
- Ruby, Vim, Zsh
This Rakefile should not be ran with sudo, it will use sudo where nessecary.
To perform tasks in a 'dry run' state append the following to your command:
DRY_RUN=true
=end
Dir.glob('./tasks/**/*').map { |file| load file }
task :default => [:install]
desc "Backup Everything"
task :backup do
Rake::Task['backup:brew'].invoke
Rake::Task['backup:mas'].invoke
Rake::Task['backup:mackup'].invoke
end
desc "Install Everything"
task :install do
Rake::Task['install:homebrew'].invoke
Rake::Task['install:brew_cask_packages'].invoke
Rake::Task['install:brew_packages'].invoke
Rake::Task['install:mas'].invoke
Rake::Task['install:mackup'].invoke
Rake::Task['update:mackup'].invoke
Rake::Task['install:zplug'].invoke
Rake::Task['update:zplug'].invoke
Rake::Task['install:fzf_bindings'].invoke
Rake::Task['install:vim_plug'].invoke
Rake::Task['update:vim'].invoke
Rake::Task['install:macos'].invoke
end
desc "Update Everything"
task :update do
Rake::Task['update:brew_cask_packages'].invoke
Rake::Task['update:brew_packages'].invoke
Rake::Task['update:zplug'].invoke
Rake::Task['update:vim'].invoke
Rake::Task['update:mas'].invoke
Rake::Task['update:mackup'].invoke
end
desc "Uninstall Everything"
task :uninstall do
Rake::Task['uninstall:brew_cask_packages'].invoke
Rake::Task['uninstall:brew_packages'].invoke
Rake::Task['uninstall:mackup'].invoke
end