Class: GreenPepper::Confluence::Server
- Inherits:
-
Object
- Object
- GreenPepper::Confluence::Server
- Defined in:
- lib/greenpepper/repository/atlassianrepository.rb
Instance Method Summary collapse
-
#initialize(server_url, handler, factory = ServerFactory.new) ⇒ Server
constructor
A new instance of Server.
- #method_missing(method_name, *args) ⇒ Object
Constructor Details
#initialize(server_url, handler, factory = ServerFactory.new) ⇒ Server
Returns a new instance of Server.
82 83 84 85 86 87 88 |
# File 'lib/greenpepper/repository/atlassianrepository.rb', line 82 def initialize(server_url, handler, factory = ServerFactory.new) unless server_url[-11..-1] == "/rpc/xmlrpc" server_url += "/rpc/xmlrpc" end server = factory.create_server server_url @conf = server.proxy handler end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args) ⇒ Object
90 91 92 93 94 95 96 |
# File 'lib/greenpepper/repository/atlassianrepository.rb', line 90 def method_missing(method_name, *args) begin @conf.send(method_name, *(args)) rescue XMLRPC::FaultException => e raise e.faultString end end |