tools/cpee in cpee-1.5.12 vs tools/cpee in cpee-1.5.13
- old
+ new
@@ -111,11 +111,11 @@
base = File.dirname(p2)
names = []
if File.basename(p2) =~ /(\d+)-(\d+)/
names = ($1.to_i..$2.to_i).to_a
elsif File.basename(p2) == '*'
- res = Typhoeus.get(File.join(base))
+ res = Typhoeus.get(File.join(base,'/'))
if res.success?
XML::Smart.string(res.response_body) do |doc|
doc.find('//instance/@id').each do |ele|
names << ele.value
end
@@ -164,11 +164,11 @@
base = File.dirname(p1)
names = []
if File.basename(p1) =~ /(\d+)-(\d+)/
names = ($1.to_i..$2.to_i).to_a
elsif File.basename(p1) == '*'
- res = Typhoeus.get(File.join(base))
+ res = Typhoeus.get(File.join(base,'/'))
if res.success?
XML::Smart.string(res.response_body) do |doc|
doc.find('//instance/@id').each do |ele|
names << ele.value
end
@@ -194,10 +194,10 @@
base = File.dirname(p1)
names = []
if File.basename(p1) =~ /(\d+)-(\d+)/
names = ($1.to_i..$2.to_i).to_a
elsif File.basename(p1) == '*'
- res = Typhoeus.get(File.join(base))
+ res = Typhoeus.get(File.join(base,'/'))
if res.success?
XML::Smart.string(res.response_body) do |doc|
doc.find('//instance/@id').each do |ele|
names << ele.value
end