plesk_kit 2.0.16 → 2.0.17
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/service_plan.rb +1 -1
- data/app/models/plesk_kit/subscription.rb +4 -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
|
+
YzA5MmQxZGRjYjI2ZWU1YmVlNDIxZTI2OGVlMmQ0OTliOTI2ZDUwZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzkxNzY3MjJkMWJhMzhmZGZiNTBjMTQ3ZGZlN2Q1YWZjNGRmMDZlYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTY5YTczYzFlNDAyMWMzZWFmZDVkNDgzOTM5NjZmYTVjZjc4YTllM2QxOTBm
|
10
|
+
YmYwZmM5MjJiYWNlY2RlNDRlZDlkMzBjYzJjN2Y1ZWE1ODU3NjM1YTU0NGY3
|
11
|
+
YTRlZWJhZjdlYTRiZjNkMmY4ZDliYzViMzYwM2Y4YmEwNDAzYzU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzZiYzUxNjk2NzRmZTY0NGM1ODU1MGExOTczNTYyYmJjMzgyMTRlYjdkMzI3
|
14
|
+
MjAzYjIxYzkxMTY1MDgwNjgxNmYxYWUzOWZlY2MwNmZiZTU1ZmNlZjk1OGUz
|
15
|
+
MTgyNGEwNzZhZTRjY2UxNTdiMzM4MDQ1MWUwOTYwMzQ2YjEzYjI=
|
@@ -14,7 +14,7 @@ module PleskKit
|
|
14
14
|
account = (customer_account_id.present? ? customer_account : (reseller_account_id.present? ? reseller_account : raise(msg="no accounts?")))
|
15
15
|
plan = PleskKit::ServicePlan.find_by_name self.plan_name
|
16
16
|
self.service_plan_id = plan.id
|
17
|
-
if plan.find_or_push(account.server)
|
17
|
+
if plan.find_or_push(account.server).present?
|
18
18
|
self.plan_name = self.plan_name
|
19
19
|
self.ip_address = account.server.host
|
20
20
|
self.owner_login = account.login
|
@@ -42,7 +42,7 @@ module PleskKit
|
|
42
42
|
puts '_-_-_'
|
43
43
|
plesk_subscription_identifier = PleskKit::Communicator.get_subscription_id(self)
|
44
44
|
puts "plesk_subscription_identifier #{plesk_subscription_identifier}"
|
45
|
-
if plan.find_or_push(account.server)
|
45
|
+
if plan.find_or_push(account.server).present?
|
46
46
|
#guid = PleskKit::Communicator.pack_and_play_with_subscription self, account
|
47
47
|
guid = PleskKit::Communicator.get_service_plan plan, account.server
|
48
48
|
puts "|=| THE GUID IS #{guid}"
|
@@ -53,6 +53,8 @@ module PleskKit
|
|
53
53
|
puts "|=| about to sync up"
|
54
54
|
PleskKit::Communicator.sync_subscription self, sub_guid, self.customer_account
|
55
55
|
true
|
56
|
+
else
|
57
|
+
puts "could not find or push?"
|
56
58
|
end
|
57
59
|
end
|
58
60
|
|
data/lib/plesk_kit/version.rb
CHANGED