Sha256: 1becbac75ad04f2629809ed067ff4e7a17166376c17ea1361378ce4f18e51b78
Contents?: true
Size: 710 Bytes
Versions: 7
Compression:
Stored size: 710 Bytes
Contents
module Vim module Jar module Plugin class Git include ::Vim::Jar::Installer::Git attr_reader :name, :url, :target_path def initialize(attrs) attrs.each_pair do |name, value| if self.respond_to? name self.instance_variable_set("@#{name}", value) end end @target_path = config.bundle_home.join(name) end def install if !File.exist?(target_path) install_to(url, target_path) else raise ::Vim::Jar::Installer.new("") end end def config ::Vim::Jar::Config.instance end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems