Class: Infect::Command::Prereqs
Instance Method Summary
collapse
build
#colorize, #error, #notice
Instance Method Details
#call ⇒ Object
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/infect/command/prereqs.rb', line 10
def call
mkdir PACK_DIR
if RUBY_PLATFORM =~ /darwin/
mkdirs %w(~/Library/Vim/swap ~/Library/Vim/backup ~/Library/Vim/undo)
else
mkdirs %w(~/.local/share/vim/swap ~/.local/share/vim/backup ~/.local/share/vim/undo")
end
end
|
#mkdirs(list) ⇒ Object
5
6
7
8
9
|
# File 'lib/infect/command/prereqs.rb', line 5
def mkdirs(list)
list.each do |path|
FileUtils.mkdir_p(File.expand_path(path))
end
end
|