lib/appengine-tools/bundler.rb in appengine-tools-0.0.3 vs lib/appengine-tools/bundler.rb in appengine-tools-0.0.4

- old
+ new

@@ -66,14 +66,10 @@ def public_root path(AppEngine::Rack.app.public_root) if AppEngine::Rack.app.public_root end - def persistent_path_token - path(public_root, '__preserve__') - end - def rack_app AppEngine::Rack.app end end @@ -115,12 +111,10 @@ end def create_public return if app.public_root.nil? Dir.mkdir(app.public_root) unless File.exists?(app.public_root) - token = app.persistent_path_token - FileUtils.touch(token) unless File.exists?(token) end def convert_config_ru if !File.exists?(app.config_ru) if File.exists?(app.web_xml) @@ -148,13 +142,18 @@ end def copy_rack update_jars('jruby-rack', EXISTING_RACK, [JRUBY_RACK]) do require 'open-uri' - open(JRUBY_RACK_URL) do |src| - open(File.join(app.webinf_lib, JRUBY_RACK), 'wb') do |dest| - dest.write(src.read) + begin + open(JRUBY_RACK_URL) do |src| + open(File.join(app.webinf_lib, JRUBY_RACK), 'wb') do |dest| + dest.write(src.read) + end end + rescue SocketError + puts "Unable to download jruby-rack." + puts "Please check your internet connection." end end end def copy_sdk