Class: Vim::Jar::Loader
- Inherits:
-
Object
- Object
- Vim::Jar::Loader
- Defined in:
- lib/vim-jar/loader.rb
Instance Method Summary collapse
- #config ⇒ Object
- #execute ⇒ Object
- #plugin(repo_url, args = {}) ⇒ Object
- #read_bundle_file ⇒ Object
- #theme(repo_url, args = {}) ⇒ Object
Instance Method Details
#config ⇒ Object
26 27 28 |
# File 'lib/vim-jar/loader.rb', line 26 def config ::Vim::Jar::Config.instance end |
#execute ⇒ Object
5 6 7 |
# File 'lib/vim-jar/loader.rb', line 5 def execute self.instance_eval read_bundle_file end |
#plugin(repo_url, args = {}) ⇒ Object
17 18 19 20 |
# File 'lib/vim-jar/loader.rb', line 17 def plugin(repo_url, args={}) p = Plugin::Git.new(repo_url) p.install end |
#read_bundle_file ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/vim-jar/loader.rb', line 9 def read_bundle_file if File.exist? config.bundle_file_path File.read config.bundle_file_path else raise Vim::Jar::InstallError.new("Can not find BundleFile in #{config.bundle_file_path}") end end |
#theme(repo_url, args = {}) ⇒ Object
22 23 24 |
# File 'lib/vim-jar/loader.rb', line 22 def theme(repo_url, args={}) end |