plesk_kit 2.0.13 → 2.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/app/models/plesk_kit/subscription.rb +8 -0
- 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
|
+
NDQyNTdiYmVlM2Y0YThmYjc1YjdiMmY5Y2E0NzNjZjg1MmIzOGU1Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDBmMmQ2YWZjMTZkODM4ZThhOWQwNGE0MzQwZjUyNGUwZWRkYzI3MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTFkZjM2N2VlZTgyNmFiY2E3NzUzNDgwMmQ0ZGM2ZDEzYmM1ZjA4ZmFiYzZm
|
10
|
+
YjBlMjNmZjhmYWI0ZWIzODU4MzMzNWJlZWVmZTI3MDhhNDg3YmU1NTg1ZGJk
|
11
|
+
ZDg3NzdhODdlYWI0YmRiZTcwMzIyY2IyOTRiYWE1ZTM0MTEwOGQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWVhMWUwMDNmYjM4NGZkYjZmMmZhYjcwZWNmM2QxYTM2ZDhmZTMzMGIwMjE0
|
14
|
+
OGJkYjJkMGFhYWI2OTRmN2Q5ZTI5YTY1Y2QyMTE2YjdiYjViMGQzMGQ3OTVi
|
15
|
+
MmRkMzkxNTEwZTE2NzcxMzhlNDFlMzIyYjg0ODJmN2Y2OTkyY2Y=
|
@@ -36,12 +36,20 @@ module PleskKit
|
|
36
36
|
def switch_in_plesk
|
37
37
|
account = (customer_account_id.present? ? customer_account : (reseller_account_id.present? ? reseller_account : raise(msg="no accounts?")))
|
38
38
|
plan = PleskKit::ServicePlan.find_by_name self.plan_name
|
39
|
+
puts "|=|plan = PleskKit::ServicePlan.find_by_name self.plan_name ||| #{plan.inspect}"
|
40
|
+
puts plan
|
41
|
+
puts plan_name
|
42
|
+
puts '_-_-_'
|
39
43
|
plesk_subscription_identifier = PleskKit::Communicator.get_subscription_id(self)
|
44
|
+
puts "plesk_subscription_identifier #{plesk_subscription_identifier}"
|
40
45
|
if plan.find_or_push(account.server) == true
|
41
46
|
#guid = PleskKit::Communicator.pack_and_play_with_subscription self, account
|
42
47
|
guid = PleskKit::Communicator.get_service_plan plan, account.server
|
48
|
+
puts "|=| about to start the switch cmd"
|
43
49
|
PleskKit::Communicator.pack_and_switch_subscription(self, guid, plesk_subscription_identifier)
|
50
|
+
puts "|=| about to start the get_subscription_guid cmd"
|
44
51
|
sub_guid = PleskKit::Communicator.get_subscription_guid(self)
|
52
|
+
puts "|=| about to sync up"
|
45
53
|
PleskKit::Communicator.sync_subscription self, sub_guid, self.customer_account
|
46
54
|
true
|
47
55
|
end
|
data/lib/plesk_kit/version.rb
CHANGED