Class: SiSU_Param::Parameters::Instructions::Store
- Inherits:
-
Object
- Object
- SiSU_Param::Parameters::Instructions::Store
- Defined in:
- lib/sisu/dp.rb
Instance Method Summary collapse
-
#initialize(md, env) ⇒ Store
constructor
A new instance of Store.
- #store ⇒ Object
Constructor Details
#initialize(md, env) ⇒ Store
Returns a new instance of Store.
1564 1565 1566 |
# File 'lib/sisu/dp.rb', line 1564 def initialize(md,env) @md,@env=md,env end |
Instance Method Details
#store ⇒ Object
1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 |
# File 'lib/sisu/dp.rb', line 1567 def store begin pstorefile="#{@env.processing_path.ao}/#{@md.fns}.pstore" File.unlink(pstorefile) if FileTest.file?(pstorefile) if (@md.opt.act[:verbose_plus][:set]==:on \ || @md.opt.act[:maintenance][:set]==:on) SiSU_Screen::Ansi.new( @md.opt.act[:color_state][:set], "PStore -> #{pstorefile}" ).txt_grey end store=PStore.new(pstorefile) store.transaction do store['md']=@md store.commit end @@md=@md=nil rescue SiSU_Errors::Rescued.new($!,$@,@md.opt.selections.str,@md.fns).location do __LINE__.to_s + ':' + __FILE__ end ensure end end |