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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzA0MGRhNjA5ZTgyMzZhNDRkYjlhZTRkMTMxMGE3MzFjNTZhN2RmYQ==
4
+ YzA5MmQxZGRjYjI2ZWU1YmVlNDIxZTI2OGVlMmQ0OTliOTI2ZDUwZA==
5
5
  data.tar.gz: !binary |-
6
- ODcwM2FkZDFmMGM5NmFjYjAyNjExNmQwYTg4YjQ5MWRhYTQyMGU0Mw==
6
+ YzkxNzY3MjJkMWJhMzhmZGZiNTBjMTQ3ZGZlN2Q1YWZjNGRmMDZlYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZmYyYjVjMDM3NzJjZGU4YWJhMDdiMzY2MmNjMWVmMGZmNjRkM2NlZjc1ZWMw
10
- MmY5ODkzMTBlNzJiMWJlMGFhNjhlNWNiYWFjMTZmMDc3N2QxMjMyZTQzMmQy
11
- NmVmMGUzZTI4ZGM2ZjA4ZThhNjc4NDFmOTdjNmM3OGFiZDJlMGM=
9
+ OTY5YTczYzFlNDAyMWMzZWFmZDVkNDgzOTM5NjZmYTVjZjc4YTllM2QxOTBm
10
+ YmYwZmM5MjJiYWNlY2RlNDRlZDlkMzBjYzJjN2Y1ZWE1ODU3NjM1YTU0NGY3
11
+ YTRlZWJhZjdlYTRiZjNkMmY4ZDliYzViMzYwM2Y4YmEwNDAzYzU=
12
12
  data.tar.gz: !binary |-
13
- NGUyNjdiZTJhMDI2MzU4ZDA3NWZhODAzY2E0ODIyODBmZjg5NzkwZjhlNmVl
14
- YjJjMGU3ZjlmNGM4NjczOGIxNWIyOTNlMDhmZjk0Y2MwNGIxYThmYWU1ZTZh
15
- Zjk5ZGIzMmI5ZmMwODI4YTc4ZDI5MmVkYTI1ZDBlOTA1N2VjOWY=
13
+ NzZiYzUxNjk2NzRmZTY0NGM1ODU1MGExOTczNTYyYmJjMzgyMTRlYjdkMzI3
14
+ MjAzYjIxYzkxMTY1MDgwNjgxNmYxYWUzOWZlY2MwNmZiZTU1ZmNlZjk1OGUz
15
+ MTgyNGEwNzZhZTRjY2UxNTdiMzM4MDQ1MWUwOTYwMzQ2YjEzYjI=
@@ -29,7 +29,7 @@ module PleskKit
29
29
  message = xml.root.elements['//errtext'].text
30
30
  raise "#{code}: #{message}"
31
31
  elsif status == 'ok'
32
- return true
32
+ return xml.root.elements['//guid'].text
33
33
  end
34
34
  end
35
35
  end
@@ -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) == true
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) == true
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
 
@@ -1,3 +1,3 @@
1
1
  module PleskKit
2
- VERSION = "2.0.16"
2
+ VERSION = "2.0.17"
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.16
4
+ version: 2.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dionne Saunders