plesk_kit 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,8 +12,8 @@ module PleskKit
12
12
 
13
13
  # Creates object and sends it in one go
14
14
  # Code only written for Customer::Account so far
15
- def self.pack_and_play_with s, customer_account = nil
16
- server = PleskKit::Server.find_by_environment(Rails.env.to_s)
15
+ def self.pack_and_play_with s, customer_account = nil, create = false
16
+ server = PleskKit::Server.find_by_environment(Rails.env.to_s) # TODO will this provision to same server cus is on?
17
17
  #TODO server = PleskKit::Server.most_suitable_for_new_customer
18
18
  packet = nil
19
19
  if customer_account.blank?
@@ -41,5 +41,20 @@ module PleskKit
41
41
  response = transportation_for packet,server
42
42
  sub.analyse response[0]
43
43
  end
44
+
45
+ def self.get_service_plan service_plan, server
46
+ server = PleskKit::Server.first
47
+ packet = service_plan.build_xml_for_get shell
48
+ response = transportation_for packet, server
49
+ service_plan.analyse response[0], server
50
+ end
51
+
52
+ def self.push_service_plan service_plan, server
53
+ server = PleskKit::Server.first
54
+ packet = service_plan.build_xml_for_add shell
55
+ response = transportation_for packet, server
56
+ service_plan.analyse response[0], server
57
+ end
58
+
44
59
  end
45
60
  end
@@ -52,8 +52,8 @@ module PleskKit
52
52
  plesk_id = xml.root.elements['//id'].text if xml.root.elements['//id'].present?
53
53
  self.server_id = server_id
54
54
  end
55
-
56
- return plesk_id # TODO save plesk_id
55
+ self.save
56
+ return self # TODO save plesk_id
57
57
  end
58
58
 
59
59
  private
@@ -55,8 +55,8 @@ module PleskKit
55
55
  plesk_id = xml.root.elements['//id'].text if xml.root.elements['//id'].present?
56
56
  self.server_id = server_id
57
57
  end
58
-
59
- return plesk_id # TODO save plesk_id
58
+ self.save
59
+ return self # TODO save plesk_id
60
60
  end
61
61
 
62
62
 
@@ -0,0 +1,359 @@
1
+ module PleskKit
2
+ class ServicePlan < ActiveRecord::Base
3
+ attr_accessible :mailboxes, :domains, :name, :traffic, :storage
4
+ validates_presence_of :mailboxes, :domains, :name, :traffic, :storage
5
+ has_many :subscriptions
6
+
7
+ def find_or_push server
8
+ PleskKit::Communicator.get_service_plan self, server
9
+ end
10
+
11
+ def analyse response_string, server
12
+ xml = REXML::Document.new(response_string)
13
+ status = xml.root.elements['//status'].text if xml.root.elements['//status'].present?
14
+ puts response_string
15
+ if xml.root.elements['//get'].present?
16
+ if status == 'error'
17
+ PleskKit::Communicator.push_service_plan self, server
18
+ elsif status == 'ok'
19
+ return true
20
+ end
21
+
22
+ elsif xml.root.elements['//add'].present?
23
+ if status == "error"
24
+ code = xml.root.elements['//errcode'].text
25
+ message = xml.root.elements['//errtext'].text
26
+ raise "#{code}: #{message}"
27
+ elsif status == 'ok'
28
+ return true
29
+ end
30
+ end
31
+ end
32
+
33
+ def build_xml_for_get shell
34
+ xml = shell
35
+ xml.instruct!
36
+ xml.packet(:version => '1.6.3.0') {
37
+ xml.tag!("service-plan") {
38
+ xml.get{
39
+ xml.filter{
40
+ xml.name("#{self.name}")
41
+ }
42
+ }
43
+ }
44
+ }
45
+ puts xml.target!
46
+ return xml.target!
47
+ end
48
+
49
+ def build_xml_for_add shell
50
+ xml = shell
51
+ xml.instruct!
52
+ xml.packet(:version => '1.6.3.0') {
53
+ xml.send(:"service-plan") {
54
+ xml.add{
55
+ xml.name("#{self.name.to_s}")
56
+ xml.mail{
57
+ xml.webmail('horde')
58
+ }
59
+ xml.limits{
60
+ xml.overuse('block')
61
+
62
+ xml.limit{
63
+ xml.name('max_site')
64
+ xml.value("#{self.domains.to_s}")
65
+ }
66
+ xml.limit{
67
+ xml.name('max_subdom')
68
+ xml.value('-1')
69
+ }
70
+ xml.limit{
71
+ xml.name('max_dom_aliases')
72
+ xml.value('-1')
73
+ }
74
+ xml.limit{
75
+ xml.name('disk_space')
76
+ xml.value("#{self.storage}") #10gb
77
+ }
78
+ xml.limit{
79
+ xml.name('disk_space_soft')
80
+ xml.value('0')
81
+ }
82
+ xml.limit{
83
+ xml.name('max_traffic')
84
+ xml.value("#{self.traffic.to_s}") # unlimited
85
+ }
86
+ xml.limit{
87
+ xml.name('max_traffic_soft')
88
+ xml.value('0')
89
+ }
90
+ xml.limit{
91
+ xml.name('max_wu')
92
+ xml.value('-1')
93
+ }
94
+ xml.limit{
95
+ xml.name('max_subftp_users')
96
+ xml.value('-1')
97
+ }
98
+ xml.limit{
99
+ xml.name('max_db')
100
+ xml.value('10')
101
+ }
102
+ xml.limit{
103
+ xml.name('max_box')
104
+ xml.value("#{self.mailboxes.to_s}") # mailboxes
105
+ }
106
+ xml.limit{
107
+ xml.name('mbox_quota')
108
+ xml.value('1073741824')
109
+ }
110
+ xml.limit{
111
+ xml.name('max_maillists')
112
+ xml.value('100')
113
+ }
114
+ xml.limit{
115
+ xml.name('max_webapps')
116
+ xml.value('0')
117
+ }
118
+ xml.limit{
119
+ xml.name('max_site_builder')
120
+ xml.value('1')
121
+ }
122
+ xml.limit{
123
+ xml.name('max_unity_mobile_sites')
124
+ xml.value('0')
125
+ }
126
+ xml.limit{
127
+ xml.name('expiration')
128
+ xml.value('-1')
129
+ }
130
+ xml.limit{
131
+ xml.name('upsell_site_builder')
132
+ xml.value('0')
133
+ }
134
+
135
+ }
136
+ xml.send(:"log-rotation"){
137
+ xml.on{
138
+ xml.send(:"log-condition"){
139
+ xml.tag!("log-bysize", "10485760")
140
+ }
141
+ xml.tag!("log-max-num-files", "10")
142
+ xml.tag!("log-compress", "true")
143
+ }
144
+ }
145
+ xml.preferences{
146
+ xml.stat('3')
147
+ xml.maillists('false')
148
+ xml.dns_zone_type('master')
149
+ }
150
+ xml.hosting{
151
+ xml.property{
152
+ xml.name('ssl')
153
+ xml.value('false')
154
+ }
155
+ xml.property{
156
+ xml.name('fp')
157
+ xml.value('false')
158
+ }
159
+ xml.property{
160
+ xml.name('fp_ssl')
161
+ xml.value('false')
162
+ }
163
+ xml.property{
164
+ xml.name('fp_auth')
165
+ xml.value('false')
166
+ }
167
+ xml.property{
168
+ xml.name('webstat')
169
+ xml.value('awstats')
170
+ }
171
+ xml.property{
172
+ xml.name('webstat_protected')
173
+ xml.value('true')
174
+ }
175
+ xml.property{
176
+ xml.name('wu_script')
177
+ xml.value('true')
178
+ }
179
+ xml.property{
180
+ xml.name('shell')
181
+ xml.value('/bin/false')
182
+ }
183
+ xml.property{
184
+ xml.name('ftp_quota')
185
+ xml.value('-1')
186
+ }
187
+ xml.property{
188
+ xml.name('php_handler_type')
189
+ xml.value('fastcgi')
190
+ }
191
+ xml.property{
192
+ xml.name('asp')
193
+ xml.value('false')
194
+ }
195
+ xml.property{
196
+ xml.name('ssi')
197
+ xml.value('false')
198
+ }
199
+ xml.property{
200
+ xml.name('php')
201
+ xml.value('true')
202
+ }
203
+ xml.property{
204
+ xml.name('cgi')
205
+ xml.value('true')
206
+ }
207
+ xml.property{
208
+ xml.name('perl')
209
+ xml.value('true')
210
+ }
211
+ xml.property{
212
+ xml.name('python')
213
+ xml.value('true')
214
+ }
215
+ xml.property{
216
+ xml.name('fastcgi')
217
+ xml.value('true')
218
+ }
219
+ xml.property{
220
+ xml.name('miva')
221
+ xml.value('false')
222
+ }
223
+ xml.property{
224
+ xml.name('coldfusion')
225
+ xml.value('false')
226
+ }
227
+ }
228
+ xml.performance{
229
+ xml.bandwidth('-1')
230
+ xml.max_connections('-1')
231
+ }
232
+ xml.permissions{
233
+ xml.permission{
234
+ xml.name('create_domains')
235
+ xml.value('true')
236
+ }
237
+ xml.permission{
238
+ xml.name('manage_phosting')
239
+ xml.value('false')
240
+ }
241
+ xml.permission{
242
+ xml.name('manage_php_settings')
243
+ xml.value('false')
244
+ }
245
+ xml.permission{
246
+ xml.name('manage_sh_access')
247
+ xml.value('false')
248
+ }
249
+ xml.permission{
250
+ xml.name('manage_not_chroot_shell')
251
+ xml.value('false')
252
+ }
253
+ xml.permission{
254
+ xml.name('manage_quota')
255
+ xml.value('false')
256
+ }
257
+ xml.permission{
258
+ xml.name('manage_subdomains')
259
+ xml.value('true')
260
+ }
261
+ xml.permission{
262
+ xml.name('manage_domain_aliases')
263
+ xml.value('false')
264
+ }
265
+ xml.permission{
266
+ xml.name('manage_log')
267
+ xml.value('true')
268
+ }
269
+ xml.permission{
270
+ xml.name('manage_anonftp')
271
+ xml.value('false')
272
+ }
273
+ xml.permission{
274
+ xml.name('manage_subftp')
275
+ xml.value('true')
276
+ }
277
+ xml.permission{
278
+ xml.name('manage_crontab')
279
+ xml.value('false')
280
+ }
281
+ xml.permission{
282
+ xml.name('manage_dns')
283
+ xml.value('true')
284
+ }
285
+ xml.permission{
286
+ xml.name('manage_webapps')
287
+ xml.value('false')
288
+ }
289
+ xml.permission{
290
+ xml.name('manage_webstat')
291
+ xml.value('true')
292
+ }
293
+ xml.permission{
294
+ xml.name('manage_mail_settings')
295
+ xml.value('true')
296
+ }
297
+ xml.permission{
298
+ xml.name('manage_maillists')
299
+ xml.value('true')
300
+ }
301
+ xml.permission{
302
+ xml.name('manage_spamfilter')
303
+ xml.value('true')
304
+ }
305
+ xml.permission{
306
+ xml.name('manage_virusfilter')
307
+ xml.value('true')
308
+ }
309
+ xml.permission{
310
+ xml.name('allow_local_backups')
311
+ xml.value('true')
312
+ }
313
+ xml.permission{
314
+ xml.name('allow_ftp_backups')
315
+ xml.value('true')
316
+ }
317
+ xml.permission{
318
+ xml.name('manage_performance')
319
+ xml.value('false')
320
+ }
321
+ xml.permission{
322
+ xml.name('select_db_server')
323
+ xml.value('false')
324
+ }
325
+ xml.permission{
326
+ xml.name('access_appcatalog')
327
+ xml.value('true')
328
+ }
329
+ xml.permission{
330
+ xml.name('allow_insecure_sites')
331
+ xml.value('true')
332
+ }
333
+ xml.permission{
334
+ xml.name('manage_website_maintenance')
335
+ xml.value('true')
336
+ }
337
+ xml.permission{
338
+ xml.name('manage_protected_dirs')
339
+ xml.value('true')
340
+ }
341
+ xml.permission{
342
+ xml.name('access_service_users')
343
+ xml.value('true')
344
+ }
345
+ xml.permission{
346
+ xml.name('allow_license_stubs')
347
+ xml.value('false')
348
+ }
349
+ }
350
+ }
351
+ }
352
+ }
353
+ puts xml.target!
354
+ return xml.target!
355
+ end
356
+
357
+
358
+ end
359
+ end
@@ -4,23 +4,32 @@ module PleskKit
4
4
 
5
5
  belongs_to :customer_account
6
6
  belongs_to :reseller_account
7
- #belongs_to :service_plan
7
+ belongs_to :service_plan
8
8
  before_create :provision_in_plesk
9
9
 
10
+
11
+
10
12
  def provision_in_plesk
13
+
11
14
  account = (customer_account_id.present? ? customer_account : (reseller_account_id.present? ? reseller_account : raise(msg="no accounts?")))
12
- self.plan_name = self.plan_name
13
- self.ip_address = '117.55.235.27'
14
- self.owner_login = account.login
15
- self.name = self.name
16
- if account.class.to_s == 'PleskKit::ResellerAccount'
17
- self.reseller_account_id = account.id
18
- elsif account.class.to_s == 'PleskKit::CustomerAccount'
19
- self.customer_account_id = account.id
15
+ plan = PleskKit::ServicePlan.find_by_name self.plan_name
16
+ self.service_plan_id = plan.id
17
+ if plan.find_or_push(account.server) == true
18
+ self.plan_name = self.plan_name
19
+ self.ip_address = '117.55.235.27'
20
+ self.owner_login = account.login
21
+ self.name = self.name
22
+ if account.class.to_s == 'PleskKit::ResellerAccount'
23
+ self.reseller_account_id = account.id
24
+ elsif account.class.to_s == 'PleskKit::CustomerAccount'
25
+ self.customer_account_id = account.id
26
+ end
27
+ guid = PleskKit::Communicator.pack_and_play_with self, account
28
+ PleskKit::Communicator.sync_subscription self, guid
29
+ self.id
30
+ else
31
+ return false
20
32
  end
21
- guid = PleskKit::Communicator.pack_and_play_with self, account
22
- PleskKit::Communicator.sync_subscription self, guid
23
- self.id
24
33
  end
25
34
 
26
35
  def pack_this shell, customer
@@ -38,7 +47,7 @@ module PleskKit
38
47
  xml.vrt_hst{
39
48
  xml.property{
40
49
  xml.name('ftp_login')
41
- xml.value("#{customer.login}#{(0...4).map{ ('a'..'z').to_a[rand(26)] }.join}")
50
+ xml.value("#{customer.login}#{rand(99).to_s}") #rand(36**8).to_s(36)
42
51
  }
43
52
  xml.property{
44
53
  xml.name('ftp_password')
@@ -0,0 +1,13 @@
1
+ class CreatePleskKitServicePlans < ActiveRecord::Migration
2
+ def change
3
+ create_table :plesk_kit_service_plans do |t|
4
+ t.string :name
5
+ t.string :domains
6
+ t.string :traffic
7
+ t.string :mailboxes
8
+ t.string :storage
9
+
10
+ t.timestamps
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module PleskKit
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
Binary file
@@ -0,0 +1,14 @@
1
+ # This migration comes from plesk_kit (originally 20130917012645)
2
+ class CreatePleskKitServicePlans < ActiveRecord::Migration
3
+ def change
4
+ create_table :plesk_kit_service_plans do |t|
5
+ t.string :name
6
+ t.string :domains
7
+ t.string :traffic
8
+ t.string :mailboxes
9
+ t.string :storage
10
+
11
+ t.timestamps
12
+ end
13
+ end
14
+ end
@@ -11,14 +11,14 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20130906040830) do
14
+ ActiveRecord::Schema.define(:version => 20130917020158) do
15
15
 
16
16
  create_table "plesk_kit_customer_accounts", :force => true do |t|
17
17
  t.string "cname"
18
18
  t.string "pname"
19
19
  t.string "login"
20
20
  t.string "passwd"
21
- t.integer "server_id"
21
+ t.integer "server_id"
22
22
  t.datetime "created_at", :null => false
23
23
  t.datetime "updated_at", :null => false
24
24
  end
@@ -37,8 +37,8 @@ ActiveRecord::Schema.define(:version => 20130906040830) do
37
37
  t.integer "server_id"
38
38
  t.integer "service_plan_id"
39
39
  t.string "plan_name"
40
- t.datetime "created_at", :null => false
41
- t.datetime "updated_at", :null => false
40
+ t.datetime "created_at", :null => false
41
+ t.datetime "updated_at", :null => false
42
42
  end
43
43
 
44
44
  create_table "plesk_kit_servers", :force => true do |t|
@@ -51,6 +51,16 @@ ActiveRecord::Schema.define(:version => 20130906040830) do
51
51
  t.datetime "updated_at", :null => false
52
52
  end
53
53
 
54
+ create_table "plesk_kit_service_plans", :force => true do |t|
55
+ t.string "name"
56
+ t.string "domains"
57
+ t.string "traffic"
58
+ t.string "mailboxes"
59
+ t.string "storage"
60
+ t.datetime "created_at", :null => false
61
+ t.datetime "updated_at", :null => false
62
+ end
63
+
54
64
  create_table "plesk_kit_subscriptions", :force => true do |t|
55
65
  t.string "name"
56
66
  t.string "owner_id"
@@ -9377,3 +9377,39 @@ Connecting to database specified by database.yml
9377
9377
  Connecting to database specified by database.yml
9378
9378
  Connecting to database specified by database.yml
9379
9379
  Connecting to database specified by database.yml
9380
+ Connecting to database specified by database.yml
9381
+ Connecting to database specified by database.yml
9382
+ Connecting to database specified by database.yml
9383
+  (46.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
9384
+ Migrating to CreatePleskKitCustomerAccounts (20130906035255)
9385
+ Migrating to CreatePleskKitResellerAccounts (20130906035256)
9386
+ Migrating to CreatePleskKitSubscriptions (20130906035257)
9387
+ Migrating to CreatePleskKitServers (20130906040830)
9388
+ Migrating to CreatePleskKitServicePlans (20130917020158)
9389
+  (0.1ms) select sqlite_version(*)
9390
+  (0.0ms) begin transaction
9391
+  (0.4ms) CREATE TABLE "plesk_kit_service_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "domains" varchar(255), "traffic" varchar(255), "mailboxes" varchar(255), "storage" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
9392
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130917020158')
9393
+  (21.0ms) commit transaction
9394
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
9395
+ Connecting to database specified by database.yml
9396
+ Connecting to database specified by database.yml
9397
+ Connecting to database specified by database.yml
9398
+ Connecting to database specified by database.yml
9399
+ Connecting to database specified by database.yml
9400
+ Connecting to database specified by database.yml
9401
+ Connecting to database specified by database.yml
9402
+ Connecting to database specified by database.yml
9403
+ Connecting to database specified by database.yml
9404
+ Connecting to database specified by database.yml
9405
+ Connecting to database specified by database.yml
9406
+ Connecting to database specified by database.yml
9407
+ Connecting to database specified by database.yml
9408
+ Connecting to database specified by database.yml
9409
+ Connecting to database specified by database.yml
9410
+ Connecting to database specified by database.yml
9411
+ Connecting to database specified by database.yml
9412
+ Connecting to database specified by database.yml
9413
+ Connecting to database specified by database.yml
9414
+ Connecting to database specified by database.yml
9415
+ Connecting to database specified by database.yml
@@ -0,0 +1,13 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ name: MyString
5
+ domains: MyString
6
+ traffic: MyString
7
+ :
8
+
9
+ two:
10
+ name: MyString
11
+ domains: MyString
12
+ traffic: MyString
13
+ :
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module PleskKit
4
+ class ServicePlanTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ 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: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-12 00:00:00.000000000 Z
12
+ date: 2013-09-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -78,6 +78,7 @@ files:
78
78
  - app/models/plesk_kit/customer_account.rb
79
79
  - app/models/plesk_kit/reseller_account.rb
80
80
  - app/models/plesk_kit/server.rb
81
+ - app/models/plesk_kit/service_plan.rb
81
82
  - app/models/plesk_kit/subscription.rb
82
83
  - app/views/layouts/plesk_kit/application.html.erb
83
84
  - app/views/plesk_kit/customer_accounts/_form.html.erb
@@ -105,6 +106,7 @@ files:
105
106
  - db/migrate/20130906033745_create_plesk_kit_reseller_accounts.rb
106
107
  - db/migrate/20130906034225_create_plesk_kit_subscriptions.rb
107
108
  - db/migrate/20130906040817_create_plesk_kit_servers.rb
109
+ - db/migrate/20130917012645_create_plesk_kit_service_plans.rb
108
110
  - lib/plesk_kit/engine.rb
109
111
  - lib/plesk_kit/version.rb
110
112
  - lib/plesk_kit.rb
@@ -135,6 +137,7 @@ files:
135
137
  - test/dummy/db/migrate/20130906035256_create_plesk_kit_reseller_accounts.plesk_kit.rb
136
138
  - test/dummy/db/migrate/20130906035257_create_plesk_kit_subscriptions.plesk_kit.rb
137
139
  - test/dummy/db/migrate/20130906040830_create_plesk_kit_servers.plesk_kit.rb
140
+ - test/dummy/db/migrate/20130917020158_create_plesk_kit_service_plans.plesk_kit.rb
138
141
  - test/dummy/db/schema.rb
139
142
  - test/dummy/db/test.sqlite3
140
143
  - test/dummy/log/development.log
@@ -185,6 +188,7 @@ files:
185
188
  - test/fixtures/plesk_kit/customers.yml
186
189
  - test/fixtures/plesk_kit/reseller_accounts.yml
187
190
  - test/fixtures/plesk_kit/servers.yml
191
+ - test/fixtures/plesk_kit/service_plans.yml
188
192
  - test/fixtures/plesk_kit/subscriptions.yml
189
193
  - test/fixtures/plesk_kit/webspaces.yml
190
194
  - test/functional/plesk_kit/customer_accounts_controller_test.rb
@@ -204,6 +208,7 @@ files:
204
208
  - test/unit/plesk_kit/customer_test.rb
205
209
  - test/unit/plesk_kit/reseller_account_test.rb
206
210
  - test/unit/plesk_kit/server_test.rb
211
+ - test/unit/plesk_kit/service_plan_test.rb
207
212
  - test/unit/plesk_kit/subscription_test.rb
208
213
  - test/unit/plesk_kit/webspace_test.rb
209
214
  homepage: https://github.com/lenoretres/plesk_kit
@@ -258,6 +263,7 @@ test_files:
258
263
  - test/dummy/db/migrate/20130906035256_create_plesk_kit_reseller_accounts.plesk_kit.rb
259
264
  - test/dummy/db/migrate/20130906035257_create_plesk_kit_subscriptions.plesk_kit.rb
260
265
  - test/dummy/db/migrate/20130906040830_create_plesk_kit_servers.plesk_kit.rb
266
+ - test/dummy/db/migrate/20130917020158_create_plesk_kit_service_plans.plesk_kit.rb
261
267
  - test/dummy/db/schema.rb
262
268
  - test/dummy/db/test.sqlite3
263
269
  - test/dummy/log/development.log
@@ -308,6 +314,7 @@ test_files:
308
314
  - test/fixtures/plesk_kit/customers.yml
309
315
  - test/fixtures/plesk_kit/reseller_accounts.yml
310
316
  - test/fixtures/plesk_kit/servers.yml
317
+ - test/fixtures/plesk_kit/service_plans.yml
311
318
  - test/fixtures/plesk_kit/subscriptions.yml
312
319
  - test/fixtures/plesk_kit/webspaces.yml
313
320
  - test/functional/plesk_kit/customer_accounts_controller_test.rb
@@ -327,5 +334,6 @@ test_files:
327
334
  - test/unit/plesk_kit/customer_test.rb
328
335
  - test/unit/plesk_kit/reseller_account_test.rb
329
336
  - test/unit/plesk_kit/server_test.rb
337
+ - test/unit/plesk_kit/service_plan_test.rb
330
338
  - test/unit/plesk_kit/subscription_test.rb
331
339
  - test/unit/plesk_kit/webspace_test.rb