forked from josephwilk/vim-cucumber
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
30 lines (25 loc) · 699 Bytes
/
Rakefile
File metadata and controls
30 lines (25 loc) · 699 Bytes
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
require 'rake'
files = [
'syntax/cucumber.vim',
'ftplugin/cucumber.vim',
'ftdetect/cucumber.vim',
'indent/cucumber.vim',
'snippets/cucumber.snippets',
]
desc "Install for the current user"
task :install do
vimfiles = if ENV['VIMFILES']
ENV['VIMFILES']
elsif RUBY_PLATFORM =~ /(win|w)32$/
File.expand_path("~/vimfiles")
else
File.expand_path("~/.vim")
end
puts "Installing rails.vim"
files.each do |file|
target_file = File.join(vimfiles, file)
FileUtils.mkdir_p(File.dirname(target_file))
FileUtils.cp(file, target_file)
puts " Copied #{file} to #{target_file}"
end
end