Sha256: d6b2c342ab97123c47e6a91b7b89adc53ee4d1f419d04d332d21c7ac4486c605

Contents?: true

Size: 1.04 KB

Versions: 6

Compression:

Stored size: 1.04 KB

Contents

require 'logger'
require 'soap/rpc/driver'

require 'rwiki/soap/common'

module RWiki
  module SOAP
    class Driver < ::SOAP::RPC::Driver
  
      APP_NAME = 'RWikiSOAPDriver'

      def initialize(end_point, soap_action=nil)
        super(end_point, RWiki::SOAP::NS, soap_action)

        add_method('allow_get_page')
        add_method('page', 'name')

        add_method('drb_host_and_port')

        add_method('include', 'name')
        add_method('find', 'str')
        add_method('src', 'name')
        add_method('body', 'name')
        add_method('modified', 'name')
        add_method('revision', 'name')
        add_method('rd2content', 'src')
        add_method('recent_changes')
        add_method('copy', 'name', 'src')
        add_method('append', 'name', 'src')
        add_method('submit', 'name', 'src', 'rev', 'log')
      end

      def log_dir=(new_value)
        if new_value.nil?
          self.wiredump_file_base = nil
        else
          self.wiredump_file_base = File.join(new_value, APP_NAME)
        end
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rabbit-0.9.2 lib/rwiki/soap/driver.rb
rabbit-0.9.1 lib/rwiki/soap/driver.rb
rabbit-0.9.0 lib/rwiki/soap/driver.rb
rabbit-0.6.4 lib/rwiki/soap/driver.rb
rabbit-0.6.3 lib/rwiki/soap/driver.rb
rabbit-0.6.2 lib/rwiki/soap/driver.rb