From f464a77b1f96183b275dfd9ac74916c43173d68d Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 17 May 2011 18:06:03 -0400 Subject: v3: embedded, source path --- lib/sisu/v3/embedded.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/sisu/v3/embedded.rb b/lib/sisu/v3/embedded.rb index f60ed85f..f6049cec 100644 --- a/lib/sisu/v3/embedded.rb +++ b/lib/sisu/v3/embedded.rb @@ -69,6 +69,7 @@ module SiSU_Embedded @md=SiSU_Param::Parameters.new(@opt).get @env=SiSU_Env::Info_env.new(@md.fns) @rhost=SiSU_Env::Info_remote.new(@opt).remote_host_base + @base_src_dir=@opt.f_pth[:pth].sub(/\/#{@opt.f_pth[:lng]}$/,'') end def read songsheet @@ -83,7 +84,7 @@ module SiSU_Embedded end end def images - src="#{Dir.pwd}/_sisu/image" + src="#{@base_src_dir}/_sisu/image" ldest="#{@env.path.webserv}/#{@env.path.stub_pwd}/_sisu/image" @rhost.each do |remote_conn| rdest="#{remote_conn[:name]}/#{@env.path.stub_pwd}/_sisu/image" @@ -102,7 +103,7 @@ module SiSU_Embedded end def audio #p @md.ec[:audio] - src="#{Dir.pwd}/_sisu/mm/audio" + src="#{@base_src_dir}/_sisu/mm/audio" ldest="#{@env.path.webserv}/#{@env.path.stub_pwd}/_sisu/mm/audio" @rhost.each do |remote_conn| rdest="#{remote_conn[:name]}/#{@env.path.stub_pwd}/_sisu/mm/audio" @@ -119,7 +120,7 @@ module SiSU_Embedded end def multimedia #p @md.ec[:multimedia] - src="#{Dir.pwd}/_sisu/mm/video" + src="#{@base_src_dir}/_sisu/mm/video" ldest="#{@env.path.webserv}/#{@env.path.stub_pwd}/_sisu/mm/video" @rhost.each do |remote_conn| rdest="#{remote_conn[:name]}/#{@env.path.stub_pwd}/_sisu/mm/video" -- cgit v1.2.3