<< | Index | >>
# export_yaml for export_daily job. run_on_weekday(2) { safe_export 'fachinfo.yaml' do exporter.export_fachinfos end } run_on_weekday(3) { safe_export 'patinfo.yaml' do exporter.export_patinfos end }
fachinfo.yaml
. (does not export fachinfo_now.yaml
)
1 2 * * * apache /var/www/oddb.org/jobs/export_daily 1 6 28 * * apache /var/www/oddb.org/jobs/export_fachinfo_yaml
run_ch.oddb_ebooks ---> fachinfo_now.yaml #=> oddb_firefox_now run_ch.oddb_now_ebooks ---> fachinfo_now.yaml #=> oddb_firefox_now, oddb_stanza_now, oddb_kindle_now
z.B.
% be bin/admin ch.oddb> registration("00450").fachinfo.class -> ODDB::Fachinfo ch.oddb> registration("00450").fachinfo.description("de") -> #<ODDB::FachinfoDocument2001:0x00000006e98a58> ch.oddb> registration("00450").fachinfo.description("de").name.class -> NilClass ch.oddb> registration("00450").fachinfo.description("fr").name.class -> NilClass
ch.oddb> effective_fachinfos.values.select{|fi| fi.description("de").name.nil? }.length -> 42 ch.oddb> effective_fachinfos.values.select{|fi| fi.description("fr").name.nil? }.length -> 48 ch.oddb> effective_fachinfos.values.select{|fi| fi.description("fr").name.nil? }.first.registrations.first.iksnr -> 34057 ch.oddb> registration("34057").fachinfo.description("de").name -> PRED FORTEŽ 1% ch.oddb> registration("34057").fachinfo.description("fr").name ->