plesk_kit 2.0.3 → 2.0.4
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 +1 -27
- 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
|
+
NWExOWFjOTQ1MGZkODg0NDIwODEyMGI2MGRkYTJkZTY5NmQ4YTY1YQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjVkYWM5ZThhMjBlYjQ2NzEzODQyZDJlNDk2Nzg5ZGNkYTU2NDAwOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWZmY2VlYmY2NjQ5YWI3ZmYzNWVmOWQwZTA3Y2I5Yzg2ZGNkYjYzN2NkY2Ey
|
10
|
+
M2VjODg0YmZiYmM0ZTc5OTY2MTU1Mjk1OWMxOWZiMmVhMDllZTk1Y2JjY2I3
|
11
|
+
YjBmZDQ3YTRlOTI3Njk0MzZhNzU1OWU0MTU3ZTc5NWEwOTE3ZDY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGVmZTM1MWE3ODBlOWI4ZDlkYmU5NjI3YTQwNjA2ZGM3ODYzMmMxNzJmMGZl
|
14
|
+
YjlkNDc3OTNhZDA4MWNlMmE2M2I3Zjk2YWFhODZlYWUwZTgzMDE5OGQxMmQz
|
15
|
+
NDA1ZDA3ZTA1NDNlOGQ3YmJkMDJkZjVjMWQ4N2M1M2U3Yjk1NGQ=
|
@@ -22,30 +22,4 @@ module PleskKit
|
|
22
22
|
return res.body, xml
|
23
23
|
end
|
24
24
|
end
|
25
|
-
end
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
class Client
|
31
|
-
attr_accessor :host, :user, :pass, :timeout, :rpc_version, :xml_response, :xml_target
|
32
|
-
def initialize(host,user,pass)
|
33
|
-
@host, @user, @pass, @timeout = host, user, pass, 30
|
34
|
-
end
|
35
|
-
|
36
|
-
def send
|
37
|
-
http = Net::HTTP.new(@host)
|
38
|
-
puts http.inspect
|
39
|
-
http.use_ssl = true
|
40
|
-
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
41
|
-
@headers = {
|
42
|
-
'HTTP_AUTH_LOGIN' => @user,
|
43
|
-
'HTTP_AUTH_PASSWD' => @pass
|
44
|
-
}
|
45
|
-
puts @headers
|
46
|
-
path = "/REST/1.0/NoAuth/mail-gateway"
|
47
|
-
res, data = http.get(path, @headers)
|
48
|
-
puts res
|
49
|
-
return res
|
50
|
-
end
|
51
|
-
end
|
25
|
+
end
|
data/lib/plesk_kit/version.rb
CHANGED