Module: Plum::SiteArchive
- Defined in:
- app/services/plum/site_archive.rb
Defined Under Namespace
Classes: Error, Exporter, Importer, InvalidArchive
Constant Summary
collapse
- FORMAT =
"plum-site"
- VERSION =
1
Class Method Summary
collapse
Class Method Details
.dump(site:, path:) ⇒ Object
16
17
18
|
# File 'app/services/plum/site_archive.rb', line 16
def dump(site:, path:)
Exporter.new(site).write(path)
end
|
.load(path:, name: nil, domain: nil) ⇒ Object
20
21
22
|
# File 'app/services/plum/site_archive.rb', line 20
def load(path:, name: nil, domain: nil)
Importer.new(path).import(name: name, domain: domain)
end
|