Module: Vim::Jar::Installer::Git

Included in:
Plugin::Git
Defined in:
lib/vim-jar/installer/git.rb

Instance Method Summary collapse

Instance Method Details

#configObject



12
13
14
# File 'lib/vim-jar/installer/git.rb', line 12

def config
  ::Vim::Jar::Config.instance
end

#install_to(source, output_path) ⇒ Object



5
6
7
8
9
10
# File 'lib/vim-jar/installer/git.rb', line 5

def install_to(source, output_path)
  Dir.chdir(config.vim_home) do
    system("git submodule add #{source} #{Pathname.new(output_path).relative_path_from(config.vim_home)}")
    system("git submodule init")
  end
end