class Pione::System::DomainDump

‘DomainDump` is a class that dumps domain environment as a file for exporting the environment from PIONE world to externals.

Constants

FILENAME

Public Class Methods

load(location) click to toggle source

Load the domain dump file.

@param location [Location::DataLocation]

the domain dump file

@return [DomainDump]

domain dump object
# File lib/pione/system/domain-dump.rb, line 14
def self.load(location)
  if location.directory?
    location = location + FILENAME
  end

  new(Marshal.load(location.read))
end

Public Instance Methods

write(location) click to toggle source

Write a domain dump file.

# File lib/pione/system/domain-dump.rb, line 25
def write(location)
  if location.directory?
    location = location + ".domain.dump"
  end

  location.write(Marshal.dump(env.dumpable))
end