GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: DataMapper Adapters
Homepage: http://www.yehudakatz.com
Clone URL: git://github.com/wycats/dm-adapters.git
raise an error if the file doesn't exist.
wycats (author)
Mon Sep 22 11:42:08 -0700 2008
commit  7061ef12556de6cc720ea30e0ab8045419c3c89d
tree    d50e38cb2aba91edb3a6a10f664978fe4e8d1f4d
parent  730844e82303e7a1407229199197aa72cf48d658
...
119
120
121
122
123
 
 
 
124
125
126
...
119
120
121
 
 
122
123
124
125
126
127
0
@@ -119,8 +119,9 @@ module DataMapper
0
           Dir["#{ENV["HOME"]}/.salesforce/#{basename}/SalesforceAPI*.rb"].size == 3
0
             old_args = ARGV.dup
0
             path = path =~ %r{^/} ? path : File.expand_path(path)
0
- require "pp"
0
- pp path
0
+ if !File.file?(path)
0
+ raise Errno::ENOENT, "No such file or directory - #{path}"
0
+ end
0
             ARGV.replace %W(--wsdl #{path} --module_path SalesforceAPI --classdef SalesforceAPI --type client)
0
             load `which wsdl2ruby.rb`.chomp
0
             FileUtils.mkdir_p "#{ENV["HOME"]}/.salesforce/#{basename}"

Comments

    No one has commented yet.