plesk_kit 2.1.3 → 2.1.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/subscription.rb +5 -2
- 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
|
+
NGJmZTQwZjFjMzZiZTQ2MjA4OTc1MWU1YWNlYjc5NTlmMTNlMWZhZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjBlYTRkZmU4YmFkNzU4NThkMDZiZWUzNTgzMzNmZWJmNjZlYmQxYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2VlYTMyODYyMWRjZDAyYzk0Y2M4ZmYyYmVkNzRjZTUwMDA0MjIwZDhiZTQz
|
10
|
+
ZjQ2NDRjZTdlYzdmMmE2Yjc3NGU2NzI1ODE5NmEwZDZiZGMwOTFmNTU4YjJl
|
11
|
+
ODE5MTQ2ZjNjYjIyOWU3MTgwNDJiNjU4OWYwZmMxMTIwYzNlMzI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDAxZTYxZTk0NGQzOGJiY2UzNTRkZTZmMzQ2NDQyNDBmMWJhMzEwYzRmNmY1
|
14
|
+
NDA4MmE4NDI2NmVlOGVjYmY3MGU4NGIwMjk0N2Q0MWNkNDIyZmQ1ZDIwNDhl
|
15
|
+
NjBlMTQ3NGRjYWJkYTg2ZDVkNTEzMmE3NGJjNzZjNjdjYzQ4ODA=
|
@@ -50,10 +50,13 @@ module PleskKit
|
|
50
50
|
account = (customer_account_id.present? ? customer_account : (reseller_account_id.present? ? reseller_account : raise(msg="no accounts?")))
|
51
51
|
mbox_limit = new_plan.mailboxes
|
52
52
|
space_limit = new_plan.storage #this value is already bytes
|
53
|
-
|
53
|
+
space_limit = 10000000000000000000000000 if space_limit == '-1'
|
54
|
+
mbox_limit = 10000000000000000000000000 if mbox_limit == '-1'
|
54
55
|
plesk_subscription_identifier = PleskKit::Communicator.get_subscription_id(self)
|
55
56
|
usage = PleskKit::Communicator.get_subscription_usage(self,plesk_subscription_identifier, account.server)
|
56
|
-
puts usage[0]
|
57
|
+
puts usage[0],usage[1]
|
58
|
+
usage[0] = 10000000000000000000000000 if usage[0] == '-1'
|
59
|
+
usage[1] = 10000000000000000000000000 if usage[1] == '-1'
|
57
60
|
if usage[0].to_i < space_limit.to_i && usage[1].to_i < mbox_limit.to_i
|
58
61
|
true
|
59
62
|
else
|
data/lib/plesk_kit/version.rb
CHANGED