lumberg 2.0.0.pre7 → 2.0.0.pre8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84218d59c5118e06c347f5444e91d1f877e7dd57
4
- data.tar.gz: 64a73ca857c350cbd276647e87843651f498215c
3
+ metadata.gz: 10dcfd306d3ee4a1a224e9bb0b3c7528a2f6c154
4
+ data.tar.gz: 48d02df40bc69730d0f2d23e9c4d9efbad0429ca
5
5
  SHA512:
6
- metadata.gz: 0e11504864abdf3e8bc63a7370beb36231ff6c95f1e8890b6ead3a61436a1d4aad8893df3bee33656b108d32f88112062c393a148de8ead317ce90dd9781a52d
7
- data.tar.gz: 7300104732cdcc90c43c4dbbf6813aa358908c2287bf2833d06fbfdebd6eac36f7599cf808b6242353755be5c71ba22b07dca1caff022d7f1b9175c4fabf6d22
6
+ metadata.gz: 846bf7143cf9b02250221fd343a9b115fabe18cc2f3076b04a923e650383765ba6d1204dbab32469f0ae0080dcfd1f553410a81b6029af7a14ef365c4cdc5998
7
+ data.tar.gz: c9a1cbb582bbe7460f977c365d6144308f45c8f180751f0d2df9a30cec802f5e65bd93697eaba101ea1228b13d5f692b5edec6337c08487bbd05f63ec3746eff
@@ -125,9 +125,11 @@ module Lumberg
125
125
  end
126
126
 
127
127
  def format_whostmgr_response(response)
128
- message = "You have successfully deleted the SSL host"
128
+ message = "successfully deleted|deleted successfully"
129
129
  if res = response.match(/(?<message>#{message})/)
130
130
  return true, res[:message], []
131
+ else
132
+ return false, "", []
131
133
  end
132
134
  end
133
135
  end
@@ -1,3 +1,3 @@
1
1
  module Lumberg
2
- VERSION = '2.0.0.pre7'
2
+ VERSION = '2.0.0.pre8'
3
3
  end
@@ -66,12 +66,15 @@ module Lumberg
66
66
 
67
67
  validate_server_host
68
68
 
69
- @base_url = format_url(options)
69
+ @base_url = format_url(options)
70
70
  end
71
71
 
72
72
  def perform_request(function, options = {})
73
73
  # WHM sometime uses different keys for the result hash
74
74
  @response_key = options.delete(:response_key) || 'result'
75
+
76
+ @whostmgr = options.delete(:whostmgr)
77
+ @base_url = format_url(options) if @whostmgr
75
78
  @function = function
76
79
  @params = format_query(options)
77
80
 
@@ -6,8 +6,7 @@ module Lumberg
6
6
 
7
7
  server.force_response_type = :whostmgr
8
8
 
9
- server.perform_request(
10
- function, { whostmgr: true }.merge(options))
9
+ server.perform_request function, options.merge({ whostmgr: true })
11
10
  end
12
11
  end
13
12
  end
@@ -11,6 +11,20 @@ module Lumberg
11
11
  host = options.delete(:domain)
12
12
  perform_request({ function: "realdelsslhost", host: host })
13
13
  end
14
+
15
+ # Public: Removes certificate data. Certificates and CSRs are grouped
16
+ # with their associated private key in SSL Storage Manager and every
17
+ # piece of data has a unique identifier. Whenever we're removing a SSL
18
+ # certificate from a domain, it's good to remove its data.
19
+ #
20
+ # options - Hash options for API call params (default: {}):
21
+ # :id - String unique identifier for cert, key or CSR
22
+ # :type - String type
23
+ #
24
+ # Returns Hash API response
25
+ def remove_data(options = {})
26
+ perform_request({ function: "delssldata" }.merge(options))
27
+ end
14
28
  end
15
29
  end
16
30
  end
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://myhost.com:2087/scripts2/realdelsslhost?host=lumberg-test.com&whostmgr=1
5
+ uri: https://myhost.com:2087/scripts2/realdelsslhost?host=lumberg-test.com
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -31,7 +31,7 @@ http_interactions:
31
31
  Transfer-Encoding:
32
32
  - chunked
33
33
  Date:
34
- - Fri, 06 Dec 2013 21:10:07 GMT
34
+ - Mon, 09 Dec 2013 20:25:13 GMT
35
35
  Content-Type:
36
36
  - text/html; charset=utf-8
37
37
  body:
@@ -168,5 +168,5 @@ http_interactions:
168
168
  MjAxMwogICAgICAgICAgICBodHRwOi8vY3BhbmVsLm5ldC8gIFVuYXV0aG9y
169
169
  aXplZCBjb3B5aW5nIGlzIHByb2hpYml0ZWQgLS0+Cg==
170
170
  http_version:
171
- recorded_at: Fri, 06 Dec 2013 21:10:08 GMT
171
+ recorded_at: Mon, 09 Dec 2013 20:25:14 GMT
172
172
  recorded_with: VCR 2.4.0
@@ -0,0 +1,179 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://myhost.com:2087/scripts2/delssldata?id=c2600_26b3b_0e30b9d45805332236d6e4adf003f1b3&type=key
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - WHM root:iscool
12
+ User-Agent:
13
+ - Faraday v0.8.8
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - '*/*'
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - cpsrvd/11.40.0.26
25
+ X-Keep-Alive-Count:
26
+ - '1'
27
+ Connection:
28
+ - Keep-Alive
29
+ Keep-Alive:
30
+ - timeout=70, max=200
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Date:
34
+ - Mon, 09 Dec 2013 20:25:14 GMT
35
+ Content-Type:
36
+ - text/html; charset=utf-8
37
+ body:
38
+ encoding: ASCII-8BIT
39
+ string: !binary |-
40
+ CjwhRE9DVFlQRSBodG1sIFBVQkxJQyAiLS8vVzNDLy9EVEQgWEhUTUwgMS4w
41
+ IFRyYW5zaXRpb25hbC8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9UUi94aHRt
42
+ bDEvRFREL3hodG1sMS10cmFuc2l0aW9uYWwuZHRkIj4KPGh0bWwgeG1sbnM9
43
+ Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiIGRpcj0ibHRyIj4KPGhl
44
+ YWQ+CiAgICA8dGl0bGU+V2ViIEhvc3QgTWFuYWdlciAxMS40MC4wLjI2IC0g
45
+ U1NMIFN0b3JhZ2UgTWFuYWdlcjwvdGl0bGU+CiAgICAgICAgPGxpbms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
79
+ aWdhdGUgaWYgdGhpcyBpcyBuZWVkZWQuCiAgICAgICAgWUFIT08udXRpbC5F
80
+ dmVudC5vbkRPTVJlYWR5KCBmdW5jdGlvbigpIHsKICAgICAgICAgICAgLy8g
81
+ UHJldmlvdXMgY29kZSB0byBoaWRlIGJyZWFkY3J1bWJzLgogICAgICAgICAg
82
+ ICAvKmlmIChwYXJlbnQgJiYgcGFyZW50LmZyYW1lcyAmJiBwYXJlbnQuZnJh
83
+ bWVzWzJdICYmIHBhcmVudC5mcmFtZXNbMl0ubmFtZSE9J21haW5GcmFtZScp
84
+ IHsKICAgICAgICAgICAgICAgIGRvY3VtZW50LndyaXRlbG4oIjxzdHlsZSB0
85
+ eXBlPSd0ZXh0L2Nzcyc+LmhpZGVCcmVhZGNydW1icyB7ZGlzcGxheTpub25l
86
+ fTwvc3R5bGU+Iik7CiAgICAgICAgICAgIH0qLwogICAgICAgICAgICBpZiAo
87
+ cGFyZW50LmZyYW1lcy5jb21tYW5kZXIgJiYgcGFyZW50LmZyYW1lcy5jb21t
88
+ YW5kZXIuY29tbWFuZGVyKSB7CiAgICAgICAgICAgICAgICBZQUhPTy51dGls
89
+ LkV2ZW50Lm9uKHdpbmRvdywgJ2xvYWQnLAogICAgICAgICAgICAgICAgICAg
90
+ IGZ1bmN0aW9uKG8pIHsKICAgICAgICAgICAgICAgICAgICAgICAgcGFyZW50
91
+ LmZyYW1lcy5jb21tYW5kZXIuY29tbWFuZGVyLnV0aWwuc2VsZWN0QWN0aXZl
92
+ UGFnZUZyb21CcmVhZGNydW1iKCk7CiAgICAgICAgICAgICAgICB9KTsKICAg
93
+ ICAgICAgICAgfQogICAgICAgIH0gKTsKCiAgICAgICAgLy8gb25Db250ZW50
94
+ UmVhZHkgc2hvdWxkIGJlIHVzZWQgZm9yIGxvYWRpbmcgYnJlYWRjcnVtYnMg
95
+ aW5zdGVhZCBvZiBvbkRvbVJlYWR5CiAgICAgICAgLy8gYmVjYXVzZSB0aGUg
96
+ bmF2aWdhdGlvbiBwYXJ0IGxvYWRzIGZpcnN0IGFuZCB3ZSBkbyBub3QgbmVl
97
+ ZCB0byB3YWl0IGZvciB0aGUKICAgICAgICAvLyBlbnRpcmUgcGFnZSB0byBi
98
+ ZSBsb2FkZWQuCiAgICAgICAgWUFIT08udXRpbC5FdmVudC5vbkNvbnRlbnRS
99
+ ZWFkeSgibmF2aWdhdGlvbiIsIGJyZWFkY3J1bWJDb250ZW50SGFuZGxlcik7
100
+ CgogICAgICAgIC8qKgogICAgICAgICogSGFuZGxlcyBicmVhZGNydW1iIHJl
101
+ bmRlcmluZyBvbiBwYWdlIGxvYWQuCiAgICAgICAgKgogICAgICAgICogQG1l
102
+ dGhvZCBicmVhZGNydW1iQ29udGVudEhhbmRsZXIKICAgICAgICAqIEBwYXJh
103
+ bSB7ZX0gZXZlbnQgb2JqZWN0CiAgICAgICAgKi8KICAgICAgICBmdW5jdGlv
104
+ biBicmVhZGNydW1iQ29udGVudEhhbmRsZXIoZSkgewogICAgICAgICAgICAv
105
+ LyBjb2RlIHRvIHNob3cgaGlkZSBicmVhZGNydW1icy4KICAgICAgICAgICAg
106
+ Ly8gRGlzcGxheSBicmVhZGNydW1icyB3aGVuIHRoZSBwYWdlIGhhcyBmcmFt
107
+ ZXMgYW5kICdtYWluRnJhbWUnIGlzIG9uZSBvZiB0aGUgZnJhbWVzIG9yCiAg
108
+ ICAgICAgICAgIC8vIHdoZW4gaW5kaXZpZHVhbCBwYWdlcyBhcmUgb3BlbmVk
109
+ IGluIHNlcGFyYXRlIHRhYi4KICAgICAgICAgICAgaWYgKHBhcmVudCAmJiBw
110
+ YXJlbnQuZnJhbWVzICYmIHBhcmVudC5mcmFtZXMubGVuZ3RoICYmICFtYWlu
111
+ RnJhbWVFeGlzdHMoKSkgewogICAgICAgICAgICAgICAgWUFIT08udXRpbC5E
112
+ b20uYWRkQ2xhc3MoJ2JyZWFkY3J1bWJzQ29udGFpbmVyJywgJ2hpZGVCcmVh
113
+ ZGNydW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j4KPC9kaXY+ICAg
130
+ ICAgICAKCiAgICAgICAgCiAgICAgICAgPGRpdiBpZD0icGFnZWhlYWRlciI+
131
+ CgogICAgICAgICAgICA8ZGl2IGNsYXNzPSJ0b3Bib3htYXJnaW4iPjwvZGl2
132
+ PgogICAgICAgICAgICA8ZGl2IGlkPSJkb2N0aXRsZSI+CiAgICAgICAgICAg
133
+ ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2
134
+ IGlkPSJzdXBwb3J0Q29udGFpbmVyIiBjbGFzcz0ic2xpZGVDb250YWluZXIi
135
+ PgogICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGlkPSJzdXBwb3J0SWNv
136
+ biIgY2xhc3M9InNsaWRlVGFiIiB0aXRsZT0iU3VwcG9ydCI+CiAgICAgICAg
137
+ ICAgICAgICAgICAgICAgICAgICA8YSBocmVmPSJqYXZhc2NyaXB0OnZvaWQo
138
+ MCk7Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW1nIGFs
139
+ dD0iU3VwcG9ydCBUYWIiIHNyYz0iL2NQYW5lbF9tYWdpY19yZXZpc2lvbl8x
140
+ MzcwNTg3NjM5L2ltYWdlcy9zdXBwb3J0X3RhYi5wbmciIC8+CiAgICAgICAg
141
+ ICAgICAgICAgICAgICAgICAgICA8L2E+CiAgICAgICAgICAgICAgICAgICAg
142
+ ICAgIDwvZGl2PgogICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGlkPSJz
143
+ dXBwb3J0UGFuZWwiIGNsYXNzPSJzbGlkZVBhbmVsIHNob3ciPgogICAgICAg
144
+ ICAgICAgICAgICAgICAgICAgICAgPGEgaHJlZj0iaHR0cDovL2dvLmNwYW5l
145
+ bC5uZXQvd2htZmFxIiB0YWJpbmRleD0iLTEiIHRhcmdldD0ic3VwcG9ydF9m
146
+ YXEiPmNQYW5lbCAmYW1wOyBXSE0gRkFRPC9hPgogICAgICAgICAgICAgICAg
147
+ ICAgICAgICAgICAgPGEgaHJlZj0iaHR0cDovL2dvLmNwYW5lbC5uZXQvY3Bm
148
+ b3J1bSIgdGFiaW5kZXg9Ii0xIiB0YXJnZXQ9InN1cHBvcnRfZm9ydW1zIj5T
149
+ dXBwb3J0IEZvcnVtczwvYT4KICAgICAgICAgICAgICAgICAgICAgICAgICAg
150
+ IDxhIGhyZWY9Imh0dHA6Ly9nby5jcGFuZWwubmV0L2hvd3RvIiB0YWJpbmRl
151
+ eD0iLTEiIHRhcmdldD0ic3VwcG9ydF93aG1kb2NzIj5XSE0gRG9jdW1lbnRh
152
+ dGlvbjwvYT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxhIGhyZWY9
153
+ Imh0dHA6Ly9nby5jcGFuZWwubmV0L2dldHN0YXJ0ZWQiIHRhYmluZGV4PSIt
154
+ MSIgdGFyZ2V0PSJzdXBwb3J0X2NwYW5lbGRvY3MiPmNQYW5lbCBEb2N1bWVu
155
+ dGF0aW9uPC9hPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPGEgaHJl
156
+ Zj0iL3NjcmlwdHMyL3JlYWxzdWJtaXRzdXBwb3J0IiB0YWJpbmRleD0iLTEi
157
+ IHRhcmdldD0ic3VwcG9ydF9jb250YWN0Ij5Db250YWN0IGNQYW5lbDwvYT4K
158
+ ICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAg
159
+ ICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
160
+ ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoMT48
161
+ c3Bhbj48aW1nIHNyYz0iL2NQYW5lbF9tYWdpY19yZXZpc2lvbl8xMzcwNTg3
162
+ Nzc2L3RoZW1lcy94L2ljb25zL3NzbF9tYW5hZ2VyLmdpZiIgYWx0PSIiIC8+
163
+ PC9zcGFuPiBTU0wgU3RvcmFnZSBNYW5hZ2VyPC9oMT4KICAgICAgICAgICAg
164
+ ICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgIDwvZGl2PgogICAgPGRp
165
+ diBpZD0icGFnZUNvbnRhaW5lciI+CgkKPGgzIGNsYXNzPSJzaW1wbGVoZWFk
166
+ aW5nIj5EZWxldGUgU1NMIEtleS9DcnQ8L2gzPgoKCiAgICA8ZGl2IGNsYXNz
167
+ PSJva21zZyI+CiAgICAgICAgPGRpdiBpZD0ibXNncyI+CiAgICAgICAgICAg
168
+ IDxkaXYgY2xhc3M9InN0YXR1c21zZyI+VGhlIGtleSDigJw8c3Ryb25nPmMy
169
+ NjAwXzI2YjNiXzBlMzBiOWQ0NTgwNTMzMjIzNmQ2ZTRhZGYwMDNmMWIzPC9z
170
+ dHJvbmc+4oCdIHdhcyBkZWxldGVkIHN1Y2Nlc3NmdWxseS48L2Rpdj4KICAg
171
+ ICAgICA8L2Rpdj4KICAgIDwvZGl2PgoKPGRpdiBjbGFzcz0icmV0dXJuLWxp
172
+ bmsiPgo8Yj5bPC9iPiA8YSBocmVmPSJzc2xtYW5hZ2VyIj5HbyBCYWNrPC9h
173
+ PjxiPiBdPC9iPgo8L2Rpdj4KCjwvZGl2Pgo8L2Rpdj4KPC9ib2R5Pgo8L2h0
174
+ bWw+CjwhLS0gV2ViIEhvc3QgTWFuYWdlciAxMS40MC4wLjI2IFsyXSAoYykg
175
+ Y1BhbmVsLCBJbmMuIDIwMTMKICAgICAgICAgICAgaHR0cDovL2NwYW5lbC5u
176
+ ZXQvICBVbmF1dGhvcml6ZWQgY29weWluZyBpcyBwcm9oaWJpdGVkIC0tPgo=
177
+ http_version:
178
+ recorded_at: Mon, 09 Dec 2013 20:25:15 GMT
179
+ recorded_with: VCR 2.4.0
@@ -16,7 +16,17 @@ module Lumberg
16
16
  it "removes the cert" do
17
17
  ssl.remove(
18
18
  domain: domain
19
- )[:message].should eq "You have successfully deleted the SSL host"
19
+ )[:message].should eq "successfully deleted"
20
+ end
21
+ end
22
+
23
+ describe "#remove_data" do
24
+ use_vcr_cassette "whostmgr/ssl/remove_data"
25
+
26
+ it "removes the cert data" do
27
+ ssl.remove_data(
28
+ id: 'c2600_26b3b_0e30b9d45805332236d6e4adf003f1b3', type: 'key'
29
+ )[:message].should eq "deleted successfully"
20
30
  end
21
31
  end
22
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lumberg
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre7
4
+ version: 2.0.0.pre8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Mazzi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-06 00:00:00.000000000 Z
11
+ date: 2013-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -376,6 +376,7 @@ files:
376
376
  - spec/vcr_cassettes/whm/server/themes.yml
377
377
  - spec/vcr_cassettes/whm/server/version.yml
378
378
  - spec/vcr_cassettes/whostmgr/ssl/remove.yml
379
+ - spec/vcr_cassettes/whostmgr/ssl/remove_data.yml
379
380
  - spec/whm/account_spec.rb
380
381
  - spec/whm/base_spec.rb
381
382
  - spec/whm/cert_spec.rb
@@ -404,225 +405,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
404
405
  version: 1.3.1
405
406
  requirements: []
406
407
  rubyforge_project: lumberg
407
- rubygems_version: 2.0.3
408
+ rubygems_version: 2.0.14
408
409
  signing_key:
409
410
  specification_version: 4
410
411
  summary: Ruby library for the WHM & cPanel API
411
- test_files:
412
- - spec/config_spec.rb
413
- - spec/cpanel/addon_domain_spec.rb
414
- - spec/cpanel/backups_spec.rb
415
- - spec/cpanel/base_spec.rb
416
- - spec/cpanel/box_trapper_spec.rb
417
- - spec/cpanel/branding_spec.rb
418
- - spec/cpanel/contact_spec.rb
419
- - spec/cpanel/cron_spec.rb
420
- - spec/cpanel/dns_lookup_spec.rb
421
- - spec/cpanel/domain_keys_spec.rb
422
- - spec/cpanel/domain_lookup_spec.rb
423
- - spec/cpanel/email_spec.rb
424
- - spec/cpanel/file_manager_spec.rb
425
- - spec/cpanel/ftp_spec.rb
426
- - spec/cpanel/gpg_spec.rb
427
- - spec/cpanel/locale_spec.rb
428
- - spec/cpanel/mime_spec.rb
429
- - spec/cpanel/mysql_spec.rb
430
- - spec/cpanel/net_spec.rb
431
- - spec/cpanel/park_spec.rb
432
- - spec/cpanel/password_spec.rb
433
- - spec/cpanel/password_strength_spec.rb
434
- - spec/cpanel/random_data_spec.rb
435
- - spec/cpanel/redirect_spec.rb
436
- - spec/cpanel/ssl_spec.rb
437
- - spec/cpanel/sub_domain_spec.rb
438
- - spec/cpanel/support_spec.rb
439
- - spec/cpanel/zone_edit_spec.rb
440
- - spec/lumberg_spec.rb
441
- - spec/sample_certs/cpanel.crt
442
- - spec/sample_certs/cpanel.key
443
- - spec/sample_certs/main.crt
444
- - spec/sample_certs/sample.crt
445
- - spec/sample_certs/sample.key
446
- - spec/spec_helper.rb
447
- - spec/support/cpanel_matchers.rb
448
- - spec/vcr_cassettes/cpanel/addon_domain/add.yml
449
- - spec/vcr_cassettes/cpanel/addon_domain/list.yml
450
- - spec/vcr_cassettes/cpanel/addon_domain/remove.yml
451
- - spec/vcr_cassettes/cpanel/backups/list.yml
452
- - spec/vcr_cassettes/cpanel/box_trapper/list.yml
453
- - spec/vcr_cassettes/cpanel/branding/list_icons.yml
454
- - spec/vcr_cassettes/cpanel/branding/list_image_types.yml
455
- - spec/vcr_cassettes/cpanel/branding/list_object_types.yml
456
- - spec/vcr_cassettes/cpanel/branding/list_pkgs.yml
457
- - spec/vcr_cassettes/cpanel/branding/list_sprites.yml
458
- - spec/vcr_cassettes/cpanel/contact/show.yml
459
- - spec/vcr_cassettes/cpanel/contact/update.yml
460
- - spec/vcr_cassettes/cpanel/cron/add.yml
461
- - spec/vcr_cassettes/cpanel/cron/edit.yml
462
- - spec/vcr_cassettes/cpanel/cron/email.yml
463
- - spec/vcr_cassettes/cpanel/cron/list.yml
464
- - spec/vcr_cassettes/cpanel/cron/remove.yml
465
- - spec/vcr_cassettes/cpanel/cron/set_email.yml
466
- - spec/vcr_cassettes/cpanel/dns_lookup/name_to_ip.yml
467
- - spec/vcr_cassettes/cpanel/domain_keys/add.yml
468
- - spec/vcr_cassettes/cpanel/domain_keys/available.yml
469
- - spec/vcr_cassettes/cpanel/domain_keys/installed.yml
470
- - spec/vcr_cassettes/cpanel/domain_keys/remove.yml
471
- - spec/vcr_cassettes/cpanel/domain_lookup/count.yml
472
- - spec/vcr_cassettes/cpanel/domain_lookup/docroot.yml
473
- - spec/vcr_cassettes/cpanel/domain_lookup/docroots.yml
474
- - spec/vcr_cassettes/cpanel/domain_lookup/document_root.yml
475
- - spec/vcr_cassettes/cpanel/domain_lookup/document_roots.yml
476
- - spec/vcr_cassettes/cpanel/domain_lookup/list.yml
477
- - spec/vcr_cassettes/cpanel/email/acceptable_encodings.yml
478
- - spec/vcr_cassettes/cpanel/email/accounts.yml
479
- - spec/vcr_cassettes/cpanel/email/add_account.yml
480
- - spec/vcr_cassettes/cpanel/email/add_filter.yml
481
- - spec/vcr_cassettes/cpanel/email/add_forwarder.yml
482
- - spec/vcr_cassettes/cpanel/email/add_mailing_list.yml
483
- - spec/vcr_cassettes/cpanel/email/add_mx.yml
484
- - spec/vcr_cassettes/cpanel/email/change_mx.yml
485
- - spec/vcr_cassettes/cpanel/email/check_local_delivery_local.yml
486
- - spec/vcr_cassettes/cpanel/email/check_local_delivery_remote.yml
487
- - spec/vcr_cassettes/cpanel/email/default_address.yml
488
- - spec/vcr_cassettes/cpanel/email/delete_mx.yml
489
- - spec/vcr_cassettes/cpanel/email/disk_usage.yml
490
- - spec/vcr_cassettes/cpanel/email/domains.yml
491
- - spec/vcr_cassettes/cpanel/email/domains_with_aliases.yml
492
- - spec/vcr_cassettes/cpanel/email/edit_quota.yml
493
- - spec/vcr_cassettes/cpanel/email/filters.yml
494
- - spec/vcr_cassettes/cpanel/email/forwarders.yml
495
- - spec/vcr_cassettes/cpanel/email/mail_dir.yml
496
- - spec/vcr_cassettes/cpanel/email/mail_dirs.yml
497
- - spec/vcr_cassettes/cpanel/email/mailing_lists.yml
498
- - spec/vcr_cassettes/cpanel/email/main_discard.yml
499
- - spec/vcr_cassettes/cpanel/email/mx.yml
500
- - spec/vcr_cassettes/cpanel/email/remove.yml
501
- - spec/vcr_cassettes/cpanel/email/set_mail_delivery_local.yml
502
- - spec/vcr_cassettes/cpanel/email/set_mail_delivery_remote.yml
503
- - spec/vcr_cassettes/cpanel/email/set_mx_type.yml
504
- - spec/vcr_cassettes/cpanel/file_manager/disk_usage.yml
505
- - spec/vcr_cassettes/cpanel/file_manager/list.yml
506
- - spec/vcr_cassettes/cpanel/file_manager/operate.yml
507
- - spec/vcr_cassettes/cpanel/file_manager/show.yml
508
- - spec/vcr_cassettes/cpanel/file_manager/stat.yml
509
- - spec/vcr_cassettes/cpanel/ftp/addftp.yml
510
- - spec/vcr_cassettes/cpanel/ftp/delftp.yml
511
- - spec/vcr_cassettes/cpanel/ftp/listftp.yml
512
- - spec/vcr_cassettes/cpanel/ftp/listftpsessions.yml
513
- - spec/vcr_cassettes/cpanel/ftp/listftpwithdisk.yml
514
- - spec/vcr_cassettes/cpanel/ftp/passwd.yml
515
- - spec/vcr_cassettes/cpanel/ftp/setquota.yml
516
- - spec/vcr_cassettes/cpanel/gpg/count.yml
517
- - spec/vcr_cassettes/cpanel/gpg/count_private.yml
518
- - spec/vcr_cassettes/cpanel/gpg/list.yml
519
- - spec/vcr_cassettes/cpanel/gpg/list_private.yml
520
- - spec/vcr_cassettes/cpanel/locale/show.yml
521
- - spec/vcr_cassettes/cpanel/net/query_hostname.yml
522
- - spec/vcr_cassettes/cpanel/net/traceroute.yml
523
- - spec/vcr_cassettes/cpanel/park/add.yml
524
- - spec/vcr_cassettes/cpanel/park/list.yml
525
- - spec/vcr_cassettes/cpanel/park/list_addon_domains.yml
526
- - spec/vcr_cassettes/cpanel/park/remove.yml
527
- - spec/vcr_cassettes/cpanel/password/digest_authentication.yml
528
- - spec/vcr_cassettes/cpanel/password/modify.yml
529
- - spec/vcr_cassettes/cpanel/password_strength/all_required_strengths.yml
530
- - spec/vcr_cassettes/cpanel/password_strength/required_strength.yml
531
- - spec/vcr_cassettes/cpanel/password_strength/strength.yml
532
- - spec/vcr_cassettes/cpanel/random_data/show.yml
533
- - spec/vcr_cassettes/cpanel/ssl/fetchcabundle.yml
534
- - spec/vcr_cassettes/cpanel/ssl/gencrt.yml
535
- - spec/vcr_cassettes/cpanel/ssl/gencsr.yml
536
- - spec/vcr_cassettes/cpanel/ssl/genkey.yml
537
- - spec/vcr_cassettes/cpanel/ssl/installssl.yml
538
- - spec/vcr_cassettes/cpanel/ssl/listcrts.yml
539
- - spec/vcr_cassettes/cpanel/ssl/listcsrs.yml
540
- - spec/vcr_cassettes/cpanel/ssl/listkeys.yml
541
- - spec/vcr_cassettes/cpanel/ssl/listsslitems.yml
542
- - spec/vcr_cassettes/cpanel/ssl/remove.yml
543
- - spec/vcr_cassettes/cpanel/ssl/showcrt.yml
544
- - spec/vcr_cassettes/cpanel/ssl/showcsr.yml
545
- - spec/vcr_cassettes/cpanel/ssl/showkey.yml
546
- - spec/vcr_cassettes/cpanel/ssl/uploadcrt.yml
547
- - spec/vcr_cassettes/cpanel/sub_domain/add.yml
548
- - spec/vcr_cassettes/cpanel/sub_domain/list.yml
549
- - spec/vcr_cassettes/cpanel/sub_domain/remove.yml
550
- - spec/vcr_cassettes/cpanel/support/contactable.yml
551
- - spec/vcr_cassettes/whm/account/accountsummary.yml
552
- - spec/vcr_cassettes/whm/account/changepackage.yml
553
- - spec/vcr_cassettes/whm/account/createacct.yml
554
- - spec/vcr_cassettes/whm/account/domainuserdata.yml
555
- - spec/vcr_cassettes/whm/account/editquota.yml
556
- - spec/vcr_cassettes/whm/account/limitbw.yml
557
- - spec/vcr_cassettes/whm/account/listaccts.yml
558
- - spec/vcr_cassettes/whm/account/listsuspended.yml
559
- - spec/vcr_cassettes/whm/account/modifyacct.yml
560
- - spec/vcr_cassettes/whm/account/myprivs.yml
561
- - spec/vcr_cassettes/whm/account/passwd.yml
562
- - spec/vcr_cassettes/whm/account/removeacct.yml
563
- - spec/vcr_cassettes/whm/account/restoreaccount.yml
564
- - spec/vcr_cassettes/whm/account/setsiteip.yml
565
- - spec/vcr_cassettes/whm/account/suspend.yml
566
- - spec/vcr_cassettes/whm/account/unsuspend.yml
567
- - spec/vcr_cassettes/whm/cert/fetchsslinfo.yml
568
- - spec/vcr_cassettes/whm/cert/generatessl.yml
569
- - spec/vcr_cassettes/whm/cert/installssl.yml
570
- - spec/vcr_cassettes/whm/cert/listcrts.yml
571
- - spec/vcr_cassettes/whm/dns/adddns.yml
572
- - spec/vcr_cassettes/whm/dns/addzonerecord.yml
573
- - spec/vcr_cassettes/whm/dns/dumpzone.yml
574
- - spec/vcr_cassettes/whm/dns/editzonerecord.yml
575
- - spec/vcr_cassettes/whm/dns/getzonerecord.yml
576
- - spec/vcr_cassettes/whm/dns/killdns.yml
577
- - spec/vcr_cassettes/whm/dns/listmxs.yml
578
- - spec/vcr_cassettes/whm/dns/listzones.yml
579
- - spec/vcr_cassettes/whm/dns/lookupnsip.yml
580
- - spec/vcr_cassettes/whm/dns/removezonerecord.yml
581
- - spec/vcr_cassettes/whm/dns/resetzone.yml
582
- - spec/vcr_cassettes/whm/dns/resolvedomainname.yml
583
- - spec/vcr_cassettes/whm/dns/savemxs.yml
584
- - spec/vcr_cassettes/whm/reseller/acctcounts.yml
585
- - spec/vcr_cassettes/whm/reseller/listacls.yml
586
- - spec/vcr_cassettes/whm/reseller/listresellers.yml
587
- - spec/vcr_cassettes/whm/reseller/resellerstats.yml
588
- - spec/vcr_cassettes/whm/reseller/saveacllist.yml
589
- - spec/vcr_cassettes/whm/reseller/setacls.yml
590
- - spec/vcr_cassettes/whm/reseller/setresellerips.yml
591
- - spec/vcr_cassettes/whm/reseller/setresellerlimits.yml
592
- - spec/vcr_cassettes/whm/reseller/setresellermainip.yml
593
- - spec/vcr_cassettes/whm/reseller/setresellernameservers.yml
594
- - spec/vcr_cassettes/whm/reseller/setresellerpackagelimit.yml
595
- - spec/vcr_cassettes/whm/reseller/setupreseller.yml
596
- - spec/vcr_cassettes/whm/reseller/suspendreseller.yml
597
- - spec/vcr_cassettes/whm/reseller/terminatereseller.yml
598
- - spec/vcr_cassettes/whm/reseller/unsetupreseller.yml
599
- - spec/vcr_cassettes/whm/reseller/unsuspendreseller.yml
600
- - spec/vcr_cassettes/whm/server/addip.yml
601
- - spec/vcr_cassettes/whm/server/applist.yml
602
- - spec/vcr_cassettes/whm/server/delip.yml
603
- - spec/vcr_cassettes/whm/server/gethostname.yml
604
- - spec/vcr_cassettes/whm/server/getlanglist.yml
605
- - spec/vcr_cassettes/whm/server/gettweaksetting.yml
606
- - spec/vcr_cassettes/whm/server/listips.yml
607
- - spec/vcr_cassettes/whm/server/loadavg.yml
608
- - spec/vcr_cassettes/whm/server/my_function.yml
609
- - spec/vcr_cassettes/whm/server/nvget.yml
610
- - spec/vcr_cassettes/whm/server/nvset.yml
611
- - spec/vcr_cassettes/whm/server/reboot.yml
612
- - spec/vcr_cassettes/whm/server/sethostname.yml
613
- - spec/vcr_cassettes/whm/server/setresolvers.yml
614
- - spec/vcr_cassettes/whm/server/settweaksetting.yml
615
- - spec/vcr_cassettes/whm/server/showbw.yml
616
- - spec/vcr_cassettes/whm/server/systemloadavg.yml
617
- - spec/vcr_cassettes/whm/server/themes.yml
618
- - spec/vcr_cassettes/whm/server/version.yml
619
- - spec/vcr_cassettes/whostmgr/ssl/remove.yml
620
- - spec/whm/account_spec.rb
621
- - spec/whm/base_spec.rb
622
- - spec/whm/cert_spec.rb
623
- - spec/whm/dns_spec.rb
624
- - spec/whm/reseller_spec.rb
625
- - spec/whm/server_spec.rb
626
- - spec/whm/whm_spec.rb
627
- - spec/whostmgr/ssl_spec.rb
412
+ test_files: []
628
413
  has_rdoc: