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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjAwZDk5NjI2NGMyM2MxMGRjYTEwODYzYmI0MThkY2I3ZGJhY2ZkZQ==
4
+ NDQyNTdiYmVlM2Y0YThmYjc1YjdiMmY5Y2E0NzNjZjg1MmIzOGU1Zg==
5
5
  data.tar.gz: !binary |-
6
- ODUwMTRiZDZlNjdhNDRiMWZiYjQ1M2YyYjJjZDliYTRiMjdlNTRlNA==
6
+ MDBmMmQ2YWZjMTZkODM4ZThhOWQwNGE0MzQwZjUyNGUwZWRkYzI3MA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDEyYjEwNTg2Y2ZmNGU3YTViN2E1ZjIzODU1Y2VjYTBkYmIxMmQ5MDk4Y2Nm
10
- ODAzZGQ1NTk2MjI0MzQ3ZDVmYmIxM2VjOTQ1OGU2MmM1OTNjMjA0NTQ1NzVm
11
- MTdjNGRhNjJkZjJlYmVmMDgyMGFmMzcwMTZhMzU2ZGM1MjkxYTY=
9
+ MTFkZjM2N2VlZTgyNmFiY2E3NzUzNDgwMmQ0ZGM2ZDEzYmM1ZjA4ZmFiYzZm
10
+ YjBlMjNmZjhmYWI0ZWIzODU4MzMzNWJlZWVmZTI3MDhhNDg3YmU1NTg1ZGJk
11
+ ZDg3NzdhODdlYWI0YmRiZTcwMzIyY2IyOTRiYWE1ZTM0MTEwOGQ=
12
12
  data.tar.gz: !binary |-
13
- MDgxNGFmNWExMThhMWJiNDJmNjMzZjk3NDYyYjU3MWIyYWQ0NTI2NTAzNWRj
14
- M2Y2YTQxZTNlY2U5NWJhN2I3YTljM2ZiYTY3MjAyZTUwZjBkZTg4YWExZTc1
15
- ZDNmZGM2YjJlNDVmN2M3MTMwZmNlYTRkY2RjOTFjNDIxYzE3OGI=
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
@@ -1,3 +1,3 @@
1
1
  module PleskKit
2
- VERSION = "2.0.13"
2
+ VERSION = "2.0.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plesk_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.13
4
+ version: 2.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dionne Saunders