From c25fc2751886278a4e7f30f127e80449160a47f1 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 25 Jun 2013 00:07:44 -0400 Subject: v4: general code cleaning, sync with v5 --- lib/sisu/v4/remote.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/sisu/v4/remote.rb') diff --git a/lib/sisu/v4/remote.rb b/lib/sisu/v4/remote.rb index 3906e966..2a158e4b 100644 --- a/lib/sisu/v4/remote.rb +++ b/lib/sisu/v4/remote.rb @@ -62,7 +62,6 @@ module SiSU_Remote require_relative 'sysenv' # sysenv.rb include SiSU_Env - pwd=Dir.pwd class Put def initialize(opt) @opt=opt @@ -122,7 +121,7 @@ module SiSU_Remote threads << Thread.new(requested_page) do |url| open(url) do |f| raise "#{url} not found" unless f - base_uri,fnb,instr=re_fnb.match(url)[1..3] if re_fnb + base_uri,fnb=re_fnb.match(url)[1..2] if re_fnb imagedir=base_uri + '/_sisu/image' #check on downloaded_file=File.new("#{fnb}.-sst",'w+') image_download_url=SiSU_Assemble::RemoteImage.new.image(imagedir) @@ -191,7 +190,7 @@ module SiSU_Remote end def dir_stub re_p_stub=/.+?([^\/]+)$/ - pod_stub= re_p_stub.match(path).captures.join if path + re_p_stub.match(path).captures.join if path end def name_source @pod -- cgit v1.2.3