diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-05-17 18:06:03 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-05-17 18:06:03 -0400 |
commit | f464a77b1f96183b275dfd9ac74916c43173d68d (patch) | |
tree | b6764b836fcf2177356f8ac76acd248d6b2b17da | |
parent | v3: version & changelog date (diff) |
v3: embedded, source path
-rw-r--r-- | lib/sisu/v3/embedded.rb | 7 |
1 files changed, 4 insertions, 3 deletions
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" |