Sha256: 048641ccb2702fce7347c90b4c68ee7d5193cce5e2108d3e3d7b2ea40f7cfa92
Contents?: true
Size: 603 Bytes
Versions: 1
Compression:
Stored size: 603 Bytes
Contents
require 'fileutils' module Infect class Command class Prereqs < Command def mkdirs(list) list.each do |path| FileUtils.mkdir_p(File.expand_path(path)) end end def call mkdir "~/.vim/bundle" # create the cache directories for sensible.vim: # TODO: Support Windows 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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
infect-0.0.5 | lib/infect/command/prereqs.rb |