2010-09-22 22:59:30 +00:00
|
|
|
module Locomotive
|
|
|
|
module Import
|
|
|
|
module Site
|
|
|
|
|
2010-09-23 23:00:13 +00:00
|
|
|
def self.process(context)
|
|
|
|
site, database = context[:site], context[:database]
|
|
|
|
|
2010-09-22 22:59:30 +00:00
|
|
|
attributes = database['site'].clone.delete_if { |name, value| %w{pages content_types asset_collections}.include?(name) }
|
|
|
|
|
|
|
|
site.attributes = attributes
|
|
|
|
|
|
|
|
site.save!
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|