diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-09-24 08:07:27 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-09-24 08:07:30 -0400 |
commit | b1d08ced020a74c5871b20ad4de57b533e3a4c2e (patch) | |
tree | cd870b7b7e9fa9253e62cf0f1750f79fc6f4c07b /lib/sisu/v3/qrcode.rb | |
parent | v3: info files, fix output; remote, include info file & manpage (when selected) (diff) |
v3: qrcode, sisu generated manifest output, treat as such
* place qrcode images in directory under manifest (manifest/qrcode)
* fix remote placement of qrcode images when requested
Diffstat (limited to 'lib/sisu/v3/qrcode.rb')
-rw-r--r-- | lib/sisu/v3/qrcode.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v3/qrcode.rb b/lib/sisu/v3/qrcode.rb index e244231e..1b741a48 100644 --- a/lib/sisu/v3/qrcode.rb +++ b/lib/sisu/v3/qrcode.rb @@ -110,7 +110,7 @@ module SiSU_QRcode @language=l[:n] @translate=SiSU_Translate::Source.new(@md,@language) @brace_url=SiSU_Viz::Skin.new.url_decoration - @dest="#{@env.path.webserv}/#{@env.path.stub_pwd}/_sisu/image" + @f.make_path(@f.output_path.qrcode.dir) end def output_metadata fn=@f.base_filename.manifest_txt @@ -128,7 +128,7 @@ module SiSU_QRcode #system(%{ # cat #{pt}/#{fn} | qrencode -s 3 -o qrcm.autonomy_markup0.png #}) - cmd=SiSU_Env::System_call.new(mn,"#{@dest}/qrc_md.#{fn}.png",@md.opt.cmd) + cmd=SiSU_Env::System_call.new(mn,@f.place_file.qrcode_md.dir,@md.opt.cmd) cmd.qrencode #system(%{ # echo "#{mn}" | qrencode -s 3 -o #{@dest}/qrc_md.#{fn}.png @@ -140,7 +140,7 @@ module SiSU_QRcode @manifest[:txt_title].each do |x| mn += x end - cmd=SiSU_Env::System_call.new(mn,"#{@dest}/qrc_title.#{fn}.png",@md.opt.cmd) + cmd=SiSU_Env::System_call.new(mn,@f.place_file.qrcode_title.dir,@md.opt.cmd) cmd.qrencode #system(%{ # echo "#{mn}" | qrencode -s 3 -o #{@dest}/qrc_title.#{fn}.png |