plesk_kit 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/plesk_kit/client.rb +0 -34
- data/lib/plesk_kit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Zjk3MDE3MzFlMzBmMzEyNWYyYjlkMDEwZGQ0MDNhM2Q2NTU4ZjE1Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGUxMTFlZWExNTc2NDIzNWI5OTA4ZWY1M2FjM2MzNDY3NGI3NzFlMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTZlMzY0NjlmMzY5NTAyMDY5ZTA3OTZlMTgyNjg1YzVlYmNkODIwZDA0OWQw
|
10
|
+
NmJmMzY0ZmJkNjhhMjkzYzU5NjU4MjliMWVhMTI1MTVjZTE2YWI2MWI1OTZi
|
11
|
+
ZWRhMThhZjY4ZjBkMDhlZWIzM2Y1ZDIzMjhiYWQ2Y2M2ZDczMzc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDAzN2Q3NTdmNjA4NGVlZjBkYzkwMzk4ZGExZjI5YTc0OGMwOTkxMDc4NzBj
|
14
|
+
ZDgzYjM1ODcyYTM4NjViMGU4YWJiNjdkZTJkYmM0ZmNiMzE2OWI2M2VkODFl
|
15
|
+
NThiYTk5M2Y2OTQxYzgzODc2OGFiNjFiYjVlYzhjM2ZlNjQ5ZmU=
|
@@ -49,37 +49,3 @@ class Client
|
|
49
49
|
return res
|
50
50
|
end
|
51
51
|
end
|
52
|
-
|
53
|
-
|
54
|
-
url = 'https://rt.ahq.net.au/REST/1.0/NoAuth/mail-gateway'
|
55
|
-
'https://rt.ahq.net.au/REST/1.0/NoAuth/mail-gateway'
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
class Client
|
61
|
-
attr_accessor :host, :user, :pass, :timeout, :rpc_version, :xml_response, :xml_target
|
62
|
-
def initialize(host,user,pass)
|
63
|
-
@host, @user, @pass, @timeout = host, user, pass, 30
|
64
|
-
end
|
65
|
-
|
66
|
-
def send(params)
|
67
|
-
http = Net::HTTP.new(@host)
|
68
|
-
puts http.inspect
|
69
|
-
http.use_ssl = true
|
70
|
-
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
71
|
-
@headers = {
|
72
|
-
'HTTP_AUTH_LOGIN' => @user,
|
73
|
-
'HTTP_AUTH_PASSWD' => @pass
|
74
|
-
}
|
75
|
-
puts @headers
|
76
|
-
path = "/REST/1.0/NoAuth/mail-gateway"
|
77
|
-
res, data = http.post2(path, params, @headers)
|
78
|
-
puts res
|
79
|
-
return res.body, params
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
|
85
|
-
|
data/lib/plesk_kit/version.rb
CHANGED