update File.exists? calls to File.exist?
This commit is contained in:
@@ -36,9 +36,9 @@ module Helpers
|
||||
# available
|
||||
def binary_filename_for(name)
|
||||
user_file = File.join(binary_directory, "#{basename}-#{name}")
|
||||
return user_file if File.exists?(user_file)
|
||||
return user_file if File.exist?(user_file)
|
||||
built_in = File.join(built_in_commands_directory, "#{name}.rb")
|
||||
return built_in if File.exists?(built_in)
|
||||
return built_in if File.exist?(built_in)
|
||||
user_file
|
||||
end
|
||||
|
||||
|
||||
@@ -32,12 +32,12 @@ module Vundle
|
||||
|
||||
private
|
||||
def self.contains_vundle?(vundle_name)
|
||||
FileUtils.touch(@vundles_path) unless File.exists? @vundles_path
|
||||
FileUtils.touch(@vundles_path) unless File.exist? @vundles_path
|
||||
File.read(@vundles_path).include?(vundle_name)
|
||||
end
|
||||
|
||||
def self.vundles_from_file
|
||||
FileUtils.touch(@vundles_path) unless File.exists? @vundles_path
|
||||
FileUtils.touch(@vundles_path) unless File.exist? @vundles_path
|
||||
File.read(@vundles_path).split("\n")
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user