Sha256: 9d517bdebc08d33c97b42bcf148b807c486ea2e54f0dd6ee915f7fb4de4b93cf

Contents?: true

Size: 274 Bytes

Versions: 8

Compression:

Stored size: 274 Bytes

Contents

#!/usr/bin/env ruby
#
# Import a MediaWiki XML dump 
#
require './lib/media_wiki'

if ARGV.length < 3
  raise "Syntax: import_xml.rb <host> <username> <password> <file>"
end

mw = MediaWiki::Gateway.new(ARGV[0], Logger::DEBUG)
mw.login(ARGV[1], ARGV[2])
mw.import(ARGV[3])

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mediawiki-gateway-0.6.2 samples/import_xml.rb
mediawiki-gateway-0.6.1 samples/import_xml.rb
mediawiki-gateway-0.6.0 samples/import_xml.rb
mediawiki-gateway-0.5.2 samples/import_xml.rb
mediawiki-gateway-0.5.1 script/import_xml.rb
mediawiki-gateway-0.5.0 script/import_xml.rb
mediawiki-gateway-0.4.5 script/import_xml.rb
mediawiki-gateway-0.4.4 script/import_xml.rb