Object
returns a list of all attachments of a page
# File lib/trac4r/wiki.rb, line 69 def attachments page @trac.query("wiki.listAttachments",page) end
deletes page with given name, returning true on success.
# File lib/trac4r/wiki.rb, line 64 def delete name @trac.query('wiki.deletePage',name) end
deletes attachment with given `path’
# File lib/trac4r/wiki.rb, line 87 def delete_attachment path @trac.query("wiki.deleteAttachment",path) end
returns the content of an attachment
# File lib/trac4r/wiki.rb, line 74 def get_attachment path @trac.query("wiki.getAttachment",path) end
returns a whole page in HTML
# File lib/trac4r/wiki.rb, line 43 def get_html name @trac.query('wiki.getPageHTML',name) end
returns a whole page in HTML
# File lib/trac4r/wiki.rb, line 48 def get_info name @trac.query('wiki.getPageInfo',name) end
returns a whole page in raw format
# File lib/trac4r/wiki.rb, line 53 def get_raw name @trac.query('wiki.getPage',name) end
returns a list of all pages
# File lib/trac4r/wiki.rb, line 33 def list @trac.query('wiki.getAllPages') end
sends a page. if the page doesn’t exist yet it is created otherwise it will be overwritten with the new content.
# File lib/trac4r/wiki.rb, line 59 def put name,content,attributes={ } @trac.query('wiki.putPage',name,content,attributes) end
uploads given `data’ as an attachment to given `page’. returns true on success. unlike the XMLRPC-Call this method defaults `replace’ to false as we don’t want to destroy anything.
# File lib/trac4r/wiki.rb, line 82 def put_attachment page,filename,description,data,replace=false @trac.query("wiki.putAttachmentEx",page,filename,description,data,replace) end
Generated with the Darkfish Rdoc Generator 2.