ruby_api_pack_cloudways 0.1.0.beta.5 → 0.1.0.pre.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3de7f67e4fbda00d90fc05e85f484bce584337d5141dca95b1c2d27fd6d0094e
|
4
|
+
data.tar.gz: 7f252f81ceca0dafc869b9992df00e4d1f36ff42d1446e9e1814c6750000c066
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 148bc5b11df8440766a62c217891e312629bbfcc1bcf2b8f2baafb1da2b66c80491fa019143d2159a79a27ffd8f0b5dd8138c8affe9358442e2d3f16dd478607
|
7
|
+
data.tar.gz: 9a9694d4c3ab236c517532562c7698e8c5d64142ab3eed92e9920ea12ef782c150bbc07064a4515349a9faf45d67cb607e2243b6a4ad1537d2bb46646333b1c7
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
### Ruby API Wrapper - Cloudways
|
2
2
|
|
3
|
-
Early Release.
|
4
|
-
|
3
|
+
Early Release. Beta 5.
|
4
|
+
|
5
5
|
Easily connect to your Cloudways account through their API.
|
6
6
|
|
7
7
|
* Secure OAuth Cloudways API Authentication
|
@@ -17,15 +17,15 @@ Easily connect to your Cloudways account through their API.
|
|
17
17
|
require "ruby_api_pack_cloudways"
|
18
18
|
|
19
19
|
def index
|
20
|
-
@
|
20
|
+
@provider_list = RubyApiPackCloudways::Api::CwLists.cw_provider_list
|
21
21
|
end
|
22
22
|
|
23
23
|
|
24
24
|
#### Example on Index File
|
25
25
|
|
26
|
-
<% @
|
26
|
+
<% @provider_list.each do |provider| %>
|
27
27
|
|
28
|
-
<%=
|
28
|
+
<%= provider["name"] %>
|
29
29
|
|
30
30
|
<% end %>
|
31
31
|
|
@@ -2,14 +2,28 @@ module RubyApiPackCloudways
|
|
2
2
|
module Api
|
3
3
|
class CwLists
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
# List - Providers
|
6
|
+
def self.cw_provider_list
|
7
|
+
providers_list = Connection::CwConnect.new(CW_API_URL, "/providers")
|
8
|
+
return Oj.load(providers_list.cloudways_api_connection.body)["providers"]
|
8
9
|
end
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
11
|
+
# List - Server Sizes
|
12
|
+
def self.cw_server_size_list
|
13
|
+
server_sizes_list = Connection::CwConnect.new(CW_API_URL, "/server_sizes")
|
14
|
+
return Oj.load(server_sizes_list.cloudways_api_connection.body)["sizes"]
|
15
|
+
end
|
16
|
+
|
17
|
+
# List - App
|
18
|
+
def self.cw_app_list
|
19
|
+
app_list = Connection::CwConnect.new(CW_API_URL, "/apps")
|
20
|
+
return Oj.load(app_list.cloudways_api_connection.body)["apps"]
|
21
|
+
end
|
22
|
+
|
23
|
+
# List - Package
|
24
|
+
def self.cw_package_list
|
25
|
+
package_list = Connection::CwConnect.new(CW_API_URL, "/packages")
|
26
|
+
return Oj.load(package_list.cloudways_api_connection.body)["packages"]
|
13
27
|
end
|
14
28
|
|
15
29
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module RubyApiPackCloudways
|
2
|
+
module Api
|
3
|
+
class CwServer
|
4
|
+
|
5
|
+
# List - Servers
|
6
|
+
def self.cw_server_list
|
7
|
+
cw_api_list_server = Connection::CwConnect.new(CW_API_URL, "/server")
|
8
|
+
return Oj.load(cw_api_list_server.cloudways_api_connection.body)["servers"]
|
9
|
+
end
|
10
|
+
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_api_pack_cloudways
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -126,6 +126,7 @@ files:
|
|
126
126
|
- Rakefile
|
127
127
|
- lib/ruby_api_pack_cloudways.rb
|
128
128
|
- lib/ruby_api_pack_cloudways/api/cw_lists.rb
|
129
|
+
- lib/ruby_api_pack_cloudways/api/cw_server.rb
|
129
130
|
- lib/ruby_api_pack_cloudways/connection/cw_connect.rb
|
130
131
|
- lib/ruby_api_pack_cloudways/connection/cw_token.rb
|
131
132
|
- lib/ruby_api_pack_cloudways/cw_client.rb
|
@@ -136,8 +137,8 @@ licenses:
|
|
136
137
|
metadata:
|
137
138
|
allowed_push_host: https://rubygems.org/
|
138
139
|
homepage_uri: https://phcdevworks.com/
|
139
|
-
source_code_uri: https://github.com/phcdevworks/
|
140
|
-
changelog_uri: https://github.com/phcdevworks/
|
140
|
+
source_code_uri: https://github.com/phcdevworks/ruby_api_pack_cloudways/
|
141
|
+
changelog_uri: https://github.com/phcdevworks/ruby_api_pack_cloudways/releases
|
141
142
|
post_install_message:
|
142
143
|
rdoc_options: []
|
143
144
|
require_paths:
|