Sha256: 48998f00644ce77cdfa222f9fa71335e5c8475212d44df366b6346fe8630c955
Contents?: true
Size: 623 Bytes
Versions: 2
Compression:
Stored size: 623 Bytes
Contents
module Infect # Globals be global VIMHOME = ENV['VIM'] || "#{ENV['HOME']}/.vim" VIMRC = ENV['MYVIMRC'] || "#{ENV['HOME']}/.vimrc" BUNDLE_DIR = "#{VIMHOME}/bundle" class Runner def self.call(*args) force = args.include? "-f" commands = [Command::Prereqs.new()] File.open( VIMRC ).each do |line| if line =~ /^"=/ command, *args = line.split commands << Command.build(command.gsub('"=', ''), args) end end commands.compact.each do |command| command.call end Cleanup.new(commands, :force => force).call end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
infect-0.0.4 | lib/infect/runner.rb |
infect-0.0.3 | lib/infect/runner.rb |