app-mgr 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/app-mgr.rb +3 -3
- metadata +1 -1
data/lib/app-mgr.rb
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
# file: app-mgr.rb
|
4
4
|
class AppMgr
|
5
|
-
def initialize(
|
5
|
+
def initialize()
|
6
6
|
@app = {}
|
7
|
-
@content_type =
|
7
|
+
@content_type = 'text/xml'
|
8
8
|
super()
|
9
9
|
end
|
10
10
|
|
@@ -89,7 +89,7 @@ class AppMgr
|
|
89
89
|
|
90
90
|
params = "<params>%s</params>" % qparams.map{|k,v| "<param var='%s'>%s</param>" % [k,v]}.join
|
91
91
|
xml_project = project = "<project name='%s'><methods><method name='%s'>%s</method></methods></project>" % [project_name, method_name, params]
|
92
|
-
projectx_handler(xml_project)
|
92
|
+
[projectx_handler(xml_project), @content_type]
|
93
93
|
end
|
94
94
|
|
95
95
|
def projectx_handler(xml_project)
|