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.



306
307
308
309
310
# File 'lib/magnolia_i_e.rb', line 306

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

Instance Method Details

#prepare_form_dataObject



312
313
314
315
316
317
318
319
320
321
# File 'lib/magnolia_i_e.rb', line 312

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