aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/remote.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-06-22 01:13:46 -0400
committerRalph Amissah <ralph@amissah.com>2013-06-22 01:13:49 -0400
commitf31e286f4a73c5c0f355512b0cb45c6c82088516 (patch)
treefdf22b179aef9937e7f6a3e71fc6c1e7f0ff9119 /lib/sisu/v5/remote.rb
parentvim, ftplugin sisu.vim, c-\ hard wrap lines to line width (moved from c-j) (diff)
v5: general code cleaningsisu_4.1.5
* propagate back to v4 after testing
Diffstat (limited to 'lib/sisu/v5/remote.rb')
-rw-r--r--lib/sisu/v5/remote.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/sisu/v5/remote.rb b/lib/sisu/v5/remote.rb
index 3a560ae1..19160826 100644
--- a/lib/sisu/v5/remote.rb
+++ b/lib/sisu/v5/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