diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-06-25 00:07:44 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-06-25 00:07:44 -0400 |
commit | c25fc2751886278a4e7f30f127e80449160a47f1 (patch) | |
tree | d19cab06d629a995848a296409693b5890d59f60 /lib/sisu/v4/remote.rb | |
parent | v5: "general code cleaning" fix (diff) |
v4: general code cleaning, sync with v5sisu_4.1.6
Diffstat (limited to 'lib/sisu/v4/remote.rb')
-rw-r--r-- | lib/sisu/v4/remote.rb | 5 |
1 files changed, 2 insertions, 3 deletions
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 |