aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v4/remote.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v4/remote.rb')
-rw-r--r--lib/sisu/v4/remote.rb5
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