aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/remote.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v3/remote.rb')
-rw-r--r--lib/sisu/v3/remote.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/sisu/v3/remote.rb b/lib/sisu/v3/remote.rb
index 1e974f9c..2e055707 100644
--- a/lib/sisu/v3/remote.rb
+++ b/lib/sisu/v3/remote.rb
@@ -64,9 +64,9 @@ module SiSU_Remote
def initialize(opt)
@opt=opt
@dir=SiSU_Env::Info_env.new(@opt.fns)
- @put=unless @opt.fns =~/\.ssm\.sst$/; @opt.fns
- else @opt.fns.gsub(/(.+)?\.ssm\.sst$/,'\1.ssm')
- end
+ @put=(@opt.fns =~/\.ssm\.sst$/) \
+ ? @opt.fns.gsub(/(.+)?\.ssm\.sst$/,'\1.ssm')
+ : @opt.fns
@remote=SiSU_Env::Info_remote.new(@opt)
end
def rsync
@@ -149,7 +149,9 @@ module SiSU_Remote
images.sort!
@msg,@msgs='downloading images:', [ images.join(',') ]
@tell.call.warn unless @opt.cmd =~/q/
- SiSU_Assemble::Remote_image.new.download_images(image_download_url,images)
+ image_info=image_download_url + images
+ SiSU_Assemble::Remote_image.new.download_images(image_info)
+ #SiSU_Assemble::Remote_image.new.download_images(image_download_url,images)
@msg,@msgs='downloading done',nil
@tell.call.warn unless @opt.cmd =~/q/
end