Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Find the full path to the wsdl2ruby.rb binary outside of the chdir

  • Loading branch information...
commit 9e852df3909f4405935645ef8f4104f716c06238 1 parent 46594eb
@halorgium authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/dm-salesforce/soap_wrapper.rb
View
6 lib/dm-salesforce/soap_wrapper.rb
@@ -25,12 +25,12 @@ def generate_soap_classes
end
unless files_exist?
+ soap4r = Gem.loaded_specs['soap4r']
+ wsdl2ruby = File.expand_path(File.join(soap4r.full_gem_path, soap4r.bindir, "wsdl2ruby.rb"))
Dir.chdir(wsdl_api_dir) do
- soap4r = Gem.loaded_specs['soap4r']
- wsdl2ruby = File.join(soap4r.full_gem_path, soap4r.bindir, "wsdl2ruby.rb")
old_args = ARGV.dup
ARGV.replace %W(--wsdl #{wsdl_path} --module_path #{module_name} --classdef #{module_name} --type client)
- load `which #{wsdl2ruby}`.chomp
+ load wsdl2ruby
ARGV.replace old_args
FileUtils.rm Dir["*Client.rb"]
end
Please sign in to comment.
Something went wrong with that request. Please try again.