lib/linner/bundler.rb in linner-0.6.7 vs lib/linner/bundler.rb in linner-0.7.0

- old
+ new

@@ -20,25 +20,25 @@ @bundles << Bundle.new(name, props["version"], props["url"]) end end def check - return [false, "Bundles didn't exsit!"] unless File.exists? REPOSITORY + return [false, "Bundles didn't exsit!"] unless File.exist? REPOSITORY @bundles.each do |bundle| - unless File.exists?(bundle.path) and File.exists?(File.join(VENDOR, bundle.name)) + unless File.exist?(bundle.path) and File.exist?(File.join(VENDOR, bundle.name)) return [false, "Bundle #{bundle.name} v#{bundle.version} didn't match!"] end end return [true, "Perfect bundled, ready to go!"] end def install - unless File.exists? REPOSITORY + unless File.exist? REPOSITORY FileUtils.mkdir_p(REPOSITORY) end @bundles.each do |bundle| if bundle.version != "master" - next if File.exists?(bundle.path) and File.exists?(File.join(VENDOR, bundle.name)) + next if File.exist?(bundle.path) and File.exist?(File.join(VENDOR, bundle.name)) end puts "Installing #{bundle.name} #{bundle.version}..." install_to_repository bundle.url, bundle.path link_to_vendor bundle.path, File.join(VENDOR, bundle.name) end