Class: MagnoliaClient::Import
- Inherits:
-
ImportExportBase
- Object
- ImportExportBase
- MagnoliaClient::Import
- Defined in:
- lib/magnolia_i_e.rb
Overview
Class responsible for import specific code
Constant Summary
Constants inherited from ImportExportBase
MagnoliaClient::ImportExportBase::MAGNOLIA_BASE_URL, MagnoliaClient::ImportExportBase::MAGNOLIA_EXPORT_URL, MagnoliaClient::ImportExportBase::MAGNOLIA_IMPORT_URL
Instance Method Summary collapse
-
#initialize(options) ⇒ Import
constructor
A new instance of Import.
- #prepare_form_data ⇒ Object
Methods inherited from ImportExportBase
#exec, #outfile_path, #pad_data, #process_with_buffer, #process_with_no_buffer, #verbose
Constructor Details
#initialize(options) ⇒ Import
Returns a new instance of Import.
279 280 281 282 283 284 |
# File 'lib/magnolia_i_e.rb', line 279 def initialize() super() @action = "importxml " @full_url = @server_url + MAGNOLIA_IMPORT_URL @import_file = .import_file end |
Instance Method Details
#prepare_form_data ⇒ Object
286 287 288 289 290 291 292 293 294 295 |
# File 'lib/magnolia_i_e.rb', line 286 def prepare_form_data form = { :mgnlFileImport=>open(@import_file), :mgnlRepository=>@workspace, :mgnlPath=>@repository_path, :mgnlKeepVersions=>false, :mgnlFormat=>false, :command=>@action } end |