Sha256: 2e2facb4fcdb2396bf2d89f6a80b58b2b5a30bc7c7ff9c31bda0d8e159384d18
Contents?: true
Size: 449 Bytes
Versions: 8
Compression:
Stored size: 449 Bytes
Contents
#!/usr/bin/env ruby # # Sample script for fetching a page's current contents in Wiki markup # require './lib/media_wiki' config = MediaWiki::Config.new(ARGV, "upload") config.abort("Name of file to upload is mandatory.") unless ARGV[0] mw = MediaWiki::Gateway.new(config.url, { :loglevel => Logger::DEBUG } ) mw.login(config.user, config.pw) mw.upload(ARGV[0], {:target => config.target, :description => config.desc, :summary => config.summary})
Version data entries
8 entries across 8 versions & 1 rubygems