vestacp 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4f32a13eaa09b2bc9ca6612f8281cc12a86b911
4
- data.tar.gz: af5bf3ef6c92df6aa11f809d383826e4653586df
3
+ metadata.gz: e1e7fa391db37440908e3f6c468e35ae59507219
4
+ data.tar.gz: 751acb22d46633f3d19ffdecf9b3e422b0e009e2
5
5
  SHA512:
6
- metadata.gz: b2d62353a4af574ec5ac7493a3908cccecf0776ec793f25543b1c070d7c34c79fa4d5f4dc4e8f957d70077af792131492968d5977652ef9551d09394121cf17f
7
- data.tar.gz: 2892bbd153234608da0577943b123eb2db20d98318395e12275ea042dcec8d06becf3cdafd99002fc225dab9499b284b60b6905a24acf6643350f10db9416b2d
6
+ metadata.gz: 22892aa011499812e9798ef4d93b6bae2bea73c9a27f4605e1d6fda8a70f0bbe0bf407992c406b55ea03704d648142866abd2d3349d82a33d70f5b790c3cab33
7
+ data.tar.gz: e5c69f5b50447b5f1c5014135188219a7b8ba6cd0427daa0c2a14cfe49e8816205a14b9d29d472c5c9ad08c73d5836cd9b00fa7beca9c9f0e1ff08336467fda2
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Vestacp
2
2
 
3
- TODO: Write a gem description
3
+ VestaCP API bindings on ruby. For now, only with user accounts, but that's simple — to make it work with another api functions.
4
4
 
5
5
  ## Installation
6
6
 
@@ -20,11 +20,76 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- TODO: Write usage instructions here
23
+ ```ruby
24
+ Vestacp::Account.information({username: 'admin'})
25
+ ```
26
+
27
+ will return
28
+ ```ruby
29
+ {:error=>false,
30
+ :response=>
31
+ {"admin"=>
32
+ {"FNAME"=>"System",
33
+ "LNAME"=>"Administrator",
34
+ "PACKAGE"=>"default",
35
+ "WEB_TEMPLATE"=>"default",
36
+ "BACKEND_TEMPLATE"=>"",
37
+ "PROXY_TEMPLATE"=>"default",
38
+ "DNS_TEMPLATE"=>"default",
39
+ "WEB_DOMAINS"=>"100",
40
+ "WEB_ALIASES"=>"100",
41
+ "DNS_DOMAINS"=>"100",
42
+ "DNS_RECORDS"=>"100",
43
+ "MAIL_DOMAINS"=>"100",
44
+ "MAIL_ACCOUNTS"=>"100",
45
+ "DATABASES"=>"100",
46
+ "CRON_JOBS"=>"100",
47
+ "DISK_QUOTA"=>"10000",
48
+ "BANDWIDTH"=>"100000",
49
+ "NS"=>"ns1.localhost.ltd, ns2.localhost.ltd",
50
+ "SHELL"=>"bash",
51
+ "BACKUPS"=>"3",
52
+ "CONTACT"=>"a@kdas.me",
53
+ "CRON_REPORTS"=>"yes",
54
+ "RKEY"=>"YTTyCNpySz",
55
+ "SUSPENDED"=>"no",
56
+ "SUSPENDED_USERS"=>"0",
57
+ "SUSPENDED_WEB"=>"0",
58
+ "SUSPENDED_DNS"=>"0",
59
+ "SUSPENDED_MAIL"=>"0",
60
+ "SUSPENDED_DB"=>"0",
61
+ "SUSPENDED_CRON"=>"0",
62
+ "IP_AVAIL"=>"1",
63
+ "IP_OWNED"=>"1",
64
+ "U_USERS"=>"1",
65
+ "U_DISK"=>"0",
66
+ "U_DISK_DIRS"=>"0",
67
+ "U_DISK_WEB"=>"0",
68
+ "U_DISK_MAIL"=>"0",
69
+ "U_DISK_DB"=>"0",
70
+ "U_BANDWIDTH"=>"0",
71
+ "U_WEB_DOMAINS"=>"1",
72
+ "U_WEB_SSL"=>"0",
73
+ "U_WEB_ALIASES"=>"1",
74
+ "U_DNS_DOMAINS"=>"1",
75
+ "U_DNS_RECORDS"=>"11",
76
+ "U_MAIL_DOMAINS"=>"1",
77
+ "U_MAIL_DKIM"=>"0",
78
+ "U_MAIL_ACCOUNTS"=>"0",
79
+ "U_DATABASES"=>"1",
80
+ "U_CRON_JOBS"=>"7",
81
+ "U_BACKUPS"=>"0",
82
+ "LANGUAGE"=>"en",
83
+ "HOME"=>"/home/admin",
84
+ "TIME"=>"06:03:09",
85
+ "DATE"=>"2015-07-18"}}}
86
+ ```
87
+
88
+ etc..
24
89
 
25
90
  ## Contributing
26
91
 
27
- 1. Fork it ( https://github.com/[my-github-username]/vestacp/fork )
92
+ 1. Fork it ( https://github.com/okdas/vestacp/fork )
28
93
  2. Create your feature branch (`git checkout -b my-new-feature`)
29
94
  3. Commit your changes (`git commit -am 'Add some feature'`)
30
95
  4. Push to the branch (`git push origin my-new-feature`)
@@ -46,7 +46,6 @@ module Vestacp
46
46
  req.body = params
47
47
  end
48
48
 
49
- binding.pry
50
49
  parse_response(json_response ? JSON.parse(response.body) : response.body)
51
50
  end
52
51
 
@@ -1,3 +1,3 @@
1
1
  module Vestacp
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vestacp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Knyazev