plesk_kit 2.2.4 → 2.2.5

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
- NTdjNjMyZGYwYTU4Nzg5ZTVhYmI0ZjU3MzEyMjkzMGY3M2MxZjA1Nw==
4
+ MDdlMTVmZTM3ZWNhMDdiYWZiNTA5ZWY2ZjNiMTY4YWFjNzI2MmY0MQ==
5
5
  data.tar.gz: !binary |-
6
- ZTcwYmYwMzAxNDZkZGY2YWZjM2M3MGU5MzNjNGY2Zjg0MjFhYzg3ZA==
6
+ MDc1ODY0MDA4OWY3YWJmMTliOWZhZGUzMGEwNGMyMzlhZDBkOGE1Yg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzAyY2NiOTU5ZTA0Mjk0ODc3ZGNhMzBmYzViMGJiZjVkMDgyMmU2ZTBlZDZj
10
- N2UxOGM0YzllY2ZiMmM4YTI4OTU2MGQ1ZTdlMGQ0NjVjZjQxMjQ1OWM0Yjk2
11
- ZjAxYTJkOGFlMDFiODYxYTkxYTUxMGQ0MTY2ZDYxOWVjYWU4ZTQ=
9
+ OTE4YmI3ZjY1ZTljZTdhYWY4MGQzZjIyNzA3YTQ4NDk1NDIxZjFjZmQ2ZDU1
10
+ NzBhMjI2M2M5YzFiODgzOTg3NDFhNzdkZWNmYTdhMmVlYzUyMjhkNTc5NDI2
11
+ ZmMzNWQ4YzdmYTAyOGQwNjgyNmI2ZDFjMGE4NTcxNDYxMGIxN2E=
12
12
  data.tar.gz: !binary |-
13
- MTkzMzZkMzViYmIwZGU4NWRhMjdjYWYxMDlmNzAwODUxOTQyMzQyMzlkNzc4
14
- MTA2NGY1YThiNjIzMmYyNWMyZmU4N2ZjMzQ0YTVhZGQ3Y2NmMjcwMTQxNDg5
15
- MDM1ZjNkODU2MGZhOGZiY2I4NThiYThjNThhNWJjMWMwNjNkMzc=
13
+ ODg1YmMxMzc4ZDVjYTU3MWU4ZTI3NWM5ZjU5M2QyZTljYzQxODM4MmEyYzYx
14
+ NThhZGJkNDkzOWUyMDUwNjMyM2I4NDNmY2MwYWJlOGVlYTQ5NzAzNGIyODc4
15
+ NDhiMTIzMzAyMDZjN2Q5ZGIwNDAyN2QzYmE1OTVmYzNkMzY2OWQ=
@@ -1,3 +1,3 @@
1
1
  module PleskKit
2
- VERSION = "2.2.4"
2
+ VERSION = "2.2.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plesk_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.4
4
+ version: 2.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dionne Saunders
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-19 00:00:00.000000000 Z
11
+ date: 2014-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -75,7 +75,6 @@ files:
75
75
  - app/models/plesk_kit/server.rb
76
76
  - app/models/plesk_kit/service_plan.rb
77
77
  - app/models/plesk_kit/subscription.rb
78
- - app/models/plesk_kit/test_audit_manual.rb
79
78
  - app/views/layouts/plesk_kit/application.html.erb
80
79
  - app/views/plesk_kit/customer_accounts/_form.html.erb
81
80
  - app/views/plesk_kit/customer_accounts/edit.html.erb
@@ -1,116 +0,0 @@
1
- errors = []
2
-
3
-
4
- Customer.all.each do |c|
5
- begin
6
- subscription = c.subscriptions.last.plesk_subscription
7
- account = (subscription.customer_account_id.present? ? subscription.customer_account : (subscription.reseller_account_id.present? ? subscription.reseller_account : raise(msg="no accounts?")))
8
- plesk_subscription_identifier = PleskKit::Communicator.get_subscription_id(subscription)
9
- usage = PleskKit::Communicator.get_subscription_usage(subscription,plesk_subscription_identifier, account.server)
10
- rescue
11
- errors << c
12
- end
13
- end
14
-
15
-
16
- errors
17
-
18
- # results
19
-
20
-
21
- # 117.55.227.91 root p8p&uvAwrEDr
22
- # 117.55.227.95 admin vepeKu4ref!5R@*r
23
- # 117.55.227.80 admin 8TXY8uMZuq
24
- # 117.55.227.81 admin 2AcFVjTYsj
25
-
26
-
27
-
28
-
29
- ( # nope
30
- ["117.55.227.81", Customer id: 8, customer_name: "1", company_name: nil, username: "1025325",
31
- password: nil, pa_account_id: "1", created_at: "2014-02-10 04:57:06",
32
- updated_at: "2014-02-10 04:57:06", customer_account_id: 8,
33
- workflow_state: "provisioned", platform: "windows"],
34
-
35
- # ["117.55.227.81", Customer id: 9, customer_name: "1001301", company_name: nil, username: "1025563",
36
- password: nil, pa_account_id: "1001301", created_at: "2014-02-10 04:57:36",
37
- updated_at: "2014-02-10 04:57:36", customer_account_id: 9,
38
- workflow_state: "provisioned", platform: "windows"],
39
- # Nope
40
- ["117.55.227.81", Customer id: 10, customer_name: "1", company_name: nil, username: "1025500",
41
- password: nil, pa_account_id: "1", created_at: "2014-02-10 04:58:20",
42
- updated_at: "2014-02-10 04:58:20", customer_account_id: 10,
43
- workflow_state: "provisioned", platform: "windows"],
44
-
45
- ["117.55.227.81", Customer id: 11, customer_name: "1009658", company_name: nil, username: "1025444",
46
- password: nil, pa_account_id: "1009658", created_at: "2014-02-10 04:59:01",
47
- updated_at: "2014-02-10 04:59:01", customer_account_id: 11,
48
- workflow_state: "provisioned", platform: "windows"],
49
-
50
- # Nope
51
- ["117.55.227.91", Customer id: 29, customer_name: "1", company_name: nil, username: "1022908",
52
- password: nil, pa_account_id: "1", created_at: "2014-02-10 05:11:19",
53
- updated_at: "2014-02-10 05:11:19", customer_account_id: 29,
54
- workflow_state: "provisioned", platform: "linux"],
55
- ["117.55.227.81", Customer id: 12, customer_name: "1", company_name: nil, username: "1020920",
56
- password: nil, pa_account_id: "1", created_at: "2014-02-10 04:59:37",
57
- updated_at: "2014-02-10 04:59:38", customer_account_id: 12,
58
- workflow_state: "provisioned", platform: "windows"],
59
- ["117.55.227.81", Customer id: 13, customer_name: "1", company_name: nil, username: "1025597",
60
- password: nil, pa_account_id: "1", created_at: "2014-02-10 05:00:13",
61
- updated_at: "2014-02-10 05:00:13", customer_account_id: 13,
62
- workflow_state: "provisioned", platform: "windows"],
63
- ["117.55.227.81", Customer id: 14, customer_name: "1", company_name: nil, username: "1024035",
64
- password: nil, pa_account_id: "1", created_at: "2014-02-10 05:00:50",
65
- updated_at: "2014-02-10 05:00:50", customer_account_id: 14,
66
- workflow_state: "provisioned", platform: "windows"],
67
- ["117.55.227.95", Customer id: 42, customer_name: "1", company_name: nil, username: "1020655",
68
- password: nil, pa_account_id: "1", created_at: "2014-02-10 05:20:27",
69
- updated_at: "2014-02-10 05:20:27", customer_account_id: 42,
70
- workflow_state: "provisioned", platform: "linux"],
71
-
72
-
73
- # RuntimeError: 1007: Domain mmcaccounts.com.au already exists.
74
-
75
- ["117.55.227.81", Customer id: 17, customer_name: "1009693", company_name: nil, username: "1025565",
76
- password: nil, pa_account_id: "1009693", created_at: "2014-02-10 05:02:30",
77
- updated_at: "2014-02-10 05:02:31", customer_account_id: 17,
78
- workflow_state: "provisioned", platform: "windows"],
79
- #["117.55.227.81", Customer id: 18, customer_name: "1009650", company_name: nil, username: "1025420",
80
- password: nil, pa_account_id: "1009650", created_at: "2014-02-10 05:03:01",
81
- updated_at: "2014-02-10 05:03:01", customer_account_id: 18,
82
- workflow_state: "provisioned", platform: "windows"],
83
- # RuntimeError: 1019: Do not use quotes, space and national alphabet characters in a password.
84
- # RuntimeError: 1007: Domain store.training-for-me.cpanel-hosting.com.au already exists.
85
- ["117.55.227.91", Customer id: 22, customer_name: "1", company_name: nil, username: "1025189",
86
- password: nil, pa_account_id: "1", created_at: "2014-02-10 05:07:13",
87
- updated_at: "2014-02-10 05:07:13", customer_account_id: 22,
88
- workflow_state: "provisioned", platform: "linux"],
89
-
90
- #RuntimeError: 1019: Do not use quotes, space and national alphabet characters in a password.
91
- #RuntimeError: 1007: Domain store.qc-technologies.cpanel-hosting.com.au already exists.
92
-
93
- ["117.55.227.91", Customer id: 24, customer_name: "1", company_name: nil, username: "1025163",
94
- password: nil, pa_account_id: "1", created_at: "2014-02-10 05:08:22",
95
- updated_at: "2014-02-10 05:08:22", customer_account_id: 24,
96
- workflow_state: "provisioned", platform: "linux"],
97
-
98
-
99
- #RuntimeError: 1007: This alias already exists.
100
-
101
- ["117.55.227.91", Customer id: 35, customer_name: "1008972", company_name: nil, username: "1021421",
102
- password: nil, pa_account_id: "1008972", created_at: "2014-02-10 05:16:46",
103
- updated_at: "2014-02-10 05:16:46", customer_account_id: 35,
104
- workflow_state: "provisioned", platform: "linux"],
105
-
106
- #RuntimeError: 1019: Do not use quotes, space and national alphabet characters in a password.
107
- #RuntimeError: 1007: Domain store.jcpit.cpanel-hosting.com.au already exists.
108
-
109
- ["117.55.227.95", Customer id: 45, customer_name: "1", company_name: nil, username: "1024770",
110
- password: nil, pa_account_id: "1", created_at: "2014-02-10 05:21:41",
111
- updated_at: "2014-02-10 05:21:41", customer_account_id: 45,
112
- workflow_state: "provisioned", platform: "linux"]
113
- )
114
-
115
- # Currently provisioning
116
- # [Customer id: 46, customer_name: "1009732", company_name: "", username: "1025660", password: "S3U5y&w$", pa_account_id: "1009732", created_at: "2014-02-10 10:44:34", updated_at: "2014-02-10 10:44:34", customer_account_id: nil, workflow_state: "provisioning", platform: "windows"]