lib/neobundle/runner.rb in neobundle-0.1.0 vs lib/neobundle/runner.rb in neobundle-0.2.0
- old
+ new
@@ -5,26 +5,27 @@
attr_reader :script
def self.default_config(platform = RUBY_PLATFORM)
config = {
vim: ENV['NEOBUNDLE_CMD_VIM'] || 'vim',
- vimrc: ENV['NEOBUNDLE_CMD_VIMRC'],
+ bundlefile: ENV['NEOBUNDLE_CMD_BUNDLEFILE'],
+ verbose: 0,
}
case platform
when /darwin/,/linux/ then
- config[:vimrc] ||= File.join(ENV['HOME'], '.vimrc')
+ config[:bundlefile] ||= File.join(ENV['HOME'], '.vimrc')
when /mswin(?!ce)|mingw|cygwin|bccwin/ then
- config[:vimrc] ||= File.join(ENV['HOME'], '_vimrc')
+ config[:bundlefile] ||= File.join(ENV['HOME'], '_vimrc')
end
config
end
def initialize(config={}, script=nil)
@script = script || Vimscript.new(self.class.default_config.merge(config))
begin
self.script.exec('NeoBundleList')
rescue NeoBundle::VimscriptError
- raise NeoBundle::NeoBundleNotFoundError, 'NeoBundle not found!'
+ raise NeoBundle::NeoBundleError, 'NeoBundle not found!'
end
end
def list
@script.exec('NeoBundleList', $stdout)