lumberg 2.0.0.pre12 → 2.0.0.pre15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/lumberg/cpanel.rb +1 -0
- data/lib/lumberg/cpanel/mysql_db.rb +190 -0
- data/lib/lumberg/version.rb +1 -1
- data/lib/lumberg/whm/server.rb +21 -1
- data/spec/cpanel/contact_spec.rb +1 -1
- data/spec/cpanel/mysql_db_spec.rb +119 -0
- data/spec/spec_helper.rb +1 -1
- data/spec/vcr_cassettes/cpanel/contact/update.yml +21 -21
- data/spec/vcr_cassettes/cpanel/file_manager/disk_usage.yml +20 -20
- data/spec/vcr_cassettes/cpanel/file_manager/list.yml +21 -21
- data/spec/vcr_cassettes/cpanel/file_manager/operate.yml +40 -40
- data/spec/vcr_cassettes/cpanel/file_manager/show.yml +21 -21
- data/spec/vcr_cassettes/cpanel/file_manager/stat.yml +21 -21
- data/spec/vcr_cassettes/cpanel/mysql_db/add_db.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/add_host.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/add_user.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/add_user_db.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/check_db.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/del_db.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/del_host.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/del_user.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/del_user_db.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/init_cache.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/number_of_dbs.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/repair_db.yml +42 -0
- data/spec/vcr_cassettes/cpanel/mysql_db/update_privs.yml +42 -0
- data/spec/vcr_cassettes/whm/server/edit_hook.yml +44 -0
- data/spec/vcr_cassettes/whm/server/list_hooks.yml +44 -0
- data/spec/whm/server_spec.rb +18 -0
- metadata +246 -213
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?arg-0=first&arg-1=first_pass&cpanel_jsonapi_apiversion=1&cpanel_jsonapi_func=adduser&cpanel_jsonapi_module=Mysql&cpanel_jsonapi_user=lumberg
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- WHM root:iscool
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.9
|
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.42.0.21
|
25
|
+
X-Keep-Alive-Count:
|
26
|
+
- '1'
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=70, max=200
|
31
|
+
Date:
|
32
|
+
- Sun, 16 Mar 2014 15:33:14 GMT
|
33
|
+
Content-Type:
|
34
|
+
- text/plain; charset="utf-8"
|
35
|
+
Content-Length:
|
36
|
+
- '111'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: "{\"apiversion\":\"1\",\"type\":\"event\",\"module\":\"Mysql\",\"func\":\"adduser\",\"source\":\"module\",\"data\":{\"result\":\"\"},\"event\":{\"result\":1}}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sun, 16 Mar 2014 15:33:17 GMT
|
42
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?arg-0=lumberg_cpanel&arg-1=lumberg_first&arg-2=all&cpanel_jsonapi_apiversion=1&cpanel_jsonapi_func=adduserdb&cpanel_jsonapi_module=Mysql&cpanel_jsonapi_user=lumberg
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- WHM root:iscool
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.9
|
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.42.0.21
|
25
|
+
X-Keep-Alive-Count:
|
26
|
+
- '1'
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=70, max=200
|
31
|
+
Date:
|
32
|
+
- Sun, 16 Mar 2014 15:33:15 GMT
|
33
|
+
Content-Type:
|
34
|
+
- text/plain; charset="utf-8"
|
35
|
+
Content-Length:
|
36
|
+
- '113'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: "{\"apiversion\":\"1\",\"type\":\"event\",\"module\":\"Mysql\",\"func\":\"adduserdb\",\"source\":\"module\",\"data\":{\"result\":\"\"},\"event\":{\"result\":1}}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sun, 16 Mar 2014 15:33:18 GMT
|
42
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?arg-0=lumberg_cpanel&cpanel_jsonapi_apiversion=1&cpanel_jsonapi_func=checkdb&cpanel_jsonapi_module=Mysql&cpanel_jsonapi_user=lumberg
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- WHM root:iscool
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.9
|
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.42.0.21
|
25
|
+
X-Keep-Alive-Count:
|
26
|
+
- '1'
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=70, max=200
|
31
|
+
Date:
|
32
|
+
- Sun, 16 Mar 2014 15:33:16 GMT
|
33
|
+
Content-Type:
|
34
|
+
- text/plain; charset="utf-8"
|
35
|
+
Content-Length:
|
36
|
+
- '112'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: "{\"apiversion\":\"1\",\"type\":\"event\",\"module\":\"Mysql\",\"func\":\"checkdb\",\"source\":\"module\",\"data\":{\"result\":\"\"},\"event\":{\"result\":1}}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sun, 16 Mar 2014 15:33:18 GMT
|
42
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?arg-0=lumberg_cpanel&cpanel_jsonapi_apiversion=1&cpanel_jsonapi_func=deldb&cpanel_jsonapi_module=Mysql&cpanel_jsonapi_user=lumberg
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- WHM root:iscool
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.9
|
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.42.0.21
|
25
|
+
X-Keep-Alive-Count:
|
26
|
+
- '1'
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=70, max=200
|
31
|
+
Date:
|
32
|
+
- Sun, 16 Mar 2014 15:33:18 GMT
|
33
|
+
Content-Type:
|
34
|
+
- text/plain; charset="utf-8"
|
35
|
+
Content-Length:
|
36
|
+
- '110'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: "{\"apiversion\":\"1\",\"type\":\"event\",\"module\":\"Mysql\",\"func\":\"deldb\",\"source\":\"module\",\"data\":{\"result\":\"\"},\"event\":{\"result\":1}}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sun, 16 Mar 2014 15:33:21 GMT
|
42
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?arg-0=cpanel_test.com&cpanel_jsonapi_apiversion=1&cpanel_jsonapi_func=delhost&cpanel_jsonapi_module=Mysql&cpanel_jsonapi_user=lumberg
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- WHM root:iscool
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.9
|
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.42.0.21
|
25
|
+
X-Keep-Alive-Count:
|
26
|
+
- '1'
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=70, max=200
|
31
|
+
Date:
|
32
|
+
- Sun, 16 Mar 2014 15:33:19 GMT
|
33
|
+
Content-Type:
|
34
|
+
- text/plain; charset="utf-8"
|
35
|
+
Content-Length:
|
36
|
+
- '111'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: "{\"apiversion\":\"1\",\"type\":\"event\",\"module\":\"Mysql\",\"func\":\"delhost\",\"source\":\"module\",\"data\":{\"result\":\"\"},\"event\":{\"result\":1}}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sun, 16 Mar 2014 15:33:21 GMT
|
42
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?arg-0=lumberg_first&cpanel_jsonapi_apiversion=1&cpanel_jsonapi_func=deluser&cpanel_jsonapi_module=Mysql&cpanel_jsonapi_user=lumberg
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- WHM root:iscool
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.9
|
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.42.0.21
|
25
|
+
X-Keep-Alive-Count:
|
26
|
+
- '1'
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=70, max=200
|
31
|
+
Date:
|
32
|
+
- Sun, 16 Mar 2014 15:33:17 GMT
|
33
|
+
Content-Type:
|
34
|
+
- text/plain; charset="utf-8"
|
35
|
+
Content-Length:
|
36
|
+
- '111'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: "{\"apiversion\":\"1\",\"type\":\"event\",\"module\":\"Mysql\",\"func\":\"deluser\",\"source\":\"module\",\"data\":{\"result\":\"\"},\"event\":{\"result\":1}}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sun, 16 Mar 2014 15:33:20 GMT
|
42
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?arg-0=lumberg_cpanel&arg-1=lumberg_first&cpanel_jsonapi_apiversion=1&cpanel_jsonapi_func=deluserdb&cpanel_jsonapi_module=Mysql&cpanel_jsonapi_user=lumberg
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- WHM root:iscool
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.9
|
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.42.0.21
|
25
|
+
X-Keep-Alive-Count:
|
26
|
+
- '1'
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=70, max=200
|
31
|
+
Date:
|
32
|
+
- Sun, 16 Mar 2014 15:33:17 GMT
|
33
|
+
Content-Type:
|
34
|
+
- text/plain; charset="utf-8"
|
35
|
+
Content-Length:
|
36
|
+
- '113'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: "{\"apiversion\":\"1\",\"type\":\"event\",\"module\":\"Mysql\",\"func\":\"deluserdb\",\"source\":\"module\",\"data\":{\"result\":\"\"},\"event\":{\"result\":1}}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sun, 16 Mar 2014 15:33:20 GMT
|
42
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=1&cpanel_jsonapi_func=initcache&cpanel_jsonapi_module=Mysql&cpanel_jsonapi_user=lumberg
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- WHM root:iscool
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.9
|
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.42.0.21
|
25
|
+
X-Keep-Alive-Count:
|
26
|
+
- '1'
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=70, max=200
|
31
|
+
Date:
|
32
|
+
- Sun, 16 Mar 2014 15:33:17 GMT
|
33
|
+
Content-Type:
|
34
|
+
- text/plain; charset="utf-8"
|
35
|
+
Content-Length:
|
36
|
+
- '113'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: "{\"apiversion\":\"1\",\"type\":\"event\",\"module\":\"Mysql\",\"func\":\"initcache\",\"source\":\"module\",\"data\":{\"result\":\"\"},\"event\":{\"result\":1}}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sun, 16 Mar 2014 15:33:19 GMT
|
42
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=1&cpanel_jsonapi_func=number_of_dbs&cpanel_jsonapi_module=Mysql&cpanel_jsonapi_user=lumberg
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- WHM root:iscool
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.9
|
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.42.0.21
|
25
|
+
X-Keep-Alive-Count:
|
26
|
+
- '1'
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=70, max=200
|
31
|
+
Date:
|
32
|
+
- Sun, 16 Mar 2014 15:33:15 GMT
|
33
|
+
Content-Type:
|
34
|
+
- text/plain; charset="utf-8"
|
35
|
+
Content-Length:
|
36
|
+
- '117'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: "{\"apiversion\":\"1\",\"type\":\"event\",\"module\":\"Mysql\",\"func\":\"number_of_dbs\",\"source\":\"module\",\"data\":{\"result\":\"1\"},\"event\":{\"result\":1}}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sun, 16 Mar 2014 15:33:18 GMT
|
42
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?arg-0=lumberg_cpanel&cpanel_jsonapi_apiversion=1&cpanel_jsonapi_func=repairdb&cpanel_jsonapi_module=Mysql&cpanel_jsonapi_user=lumberg
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- WHM root:iscool
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.9
|
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.42.0.21
|
25
|
+
X-Keep-Alive-Count:
|
26
|
+
- '1'
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=70, max=200
|
31
|
+
Date:
|
32
|
+
- Sun, 16 Mar 2014 15:33:16 GMT
|
33
|
+
Content-Type:
|
34
|
+
- text/plain; charset="utf-8"
|
35
|
+
Content-Length:
|
36
|
+
- '112'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: "{\"apiversion\":\"1\",\"type\":\"event\",\"module\":\"Mysql\",\"func\":\"repairdb\",\"source\":\"module\",\"data\":{\"result\":\"\"},\"event\":{\"result\":1}}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sun, 16 Mar 2014 15:33:19 GMT
|
42
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=1&cpanel_jsonapi_func=updateprivs&cpanel_jsonapi_module=Mysql&cpanel_jsonapi_user=lumberg
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- WHM root:iscool
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.9
|
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.42.0.21
|
25
|
+
X-Keep-Alive-Count:
|
26
|
+
- '1'
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=70, max=200
|
31
|
+
Date:
|
32
|
+
- Sun, 16 Mar 2014 15:33:16 GMT
|
33
|
+
Content-Type:
|
34
|
+
- text/plain; charset="utf-8"
|
35
|
+
Content-Length:
|
36
|
+
- '113'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: "{\"apiversion\":\"1\",\"type\":\"event\",\"module\":\"Mysql\",\"func\":\"updateprivs\",\"source\":\"module\",\"data\":{\"result\":\"\"},\"event\":{\"result\":1}}"
|
40
|
+
http_version:
|
41
|
+
recorded_at: Sun, 16 Mar 2014 15:33:19 GMT
|
42
|
+
recorded_with: VCR 2.4.0
|