Class: MagnoliaClient::Export

Inherits:
ImportExportBase show all
Defined in:
lib/magnolia_i_e.rb

Overview

Class responsible for export specific code

Constant Summary

Constants inherited from ImportExportBase

ImportExportBase::MAGNOLIA_BASE_URL, ImportExportBase::MAGNOLIA_EXPORT_URL, ImportExportBase::MAGNOLIA_IMPORT_URL

Instance Method Summary collapse

Methods inherited from ImportExportBase

#exec, #outfile_path, #pad_data, #process_with_buffer, #process_with_no_buffer, #verbose

Constructor Details

#initialize(options) ⇒ Export

Returns a new instance of Export.



303
304
305
306
307
# File 'lib/magnolia_i_e.rb', line 303

def initialize(options)
    super(options)
    @action = "exportxml"
    @full_url = @server_url + MAGNOLIA_EXPORT_URL
end

Instance Method Details

#prepare_form_dataObject



309
310
311
312
313
314
315
316
317
318
# File 'lib/magnolia_i_e.rb', line 309

def prepare_form_data
    post_data = {
        :mgnlRepository=>@workspace,
        :mgnlPath=>@repository_path,
        :command=>@action,
        #:mgnlKeepVersions=>false,
        #:mgnlFormat=>false,
        :ext=>'.xml'
    }
end