Sha256: dc6c6d6f69dce70358f8a878335fcb349ad53ac6b2c1f0968a43bc7e67f594ba
Contents?: true
Size: 706 Bytes
Versions: 3
Compression:
Stored size: 706 Bytes
Contents
module Pione module System # DomainInfo is a domain informations for exporting from PIONE world to # externals. class DomainInfo < StructX # Read domin info file from the location. def self.read(location) location = location + ".domain.dump" if location.directory? new(Marshal.load(location.read)) end member :env # Write domain info file into the location. def write(location) location = location + ".domain.dump" if location.directory? unless location.exist? location.create(Marshal.dump(env.dumpable)) else location.update(Marshal.dump(env.dumpable)) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pione-0.3.2 | lib/pione/system/domain-info.rb |
pione-0.3.1 | lib/pione/system/domain-info.rb |
pione-0.3.0 | lib/pione/system/domain-info.rb |