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: ffcdd908f7f9937120ce8d9dc314c1f1d7e4d4946befe5d82c2bf8254a70fc9f
4
- data.tar.gz: b673c313cf33f22781be1ecf171df63f12d4575659a7f5bca2e997ded1e72a6c
3
+ metadata.gz: 3de7f67e4fbda00d90fc05e85f484bce584337d5141dca95b1c2d27fd6d0094e
4
+ data.tar.gz: 7f252f81ceca0dafc869b9992df00e4d1f36ff42d1446e9e1814c6750000c066
5
5
  SHA512:
6
- metadata.gz: a06f3f4feb01ff1edd05186ccd05a09e814cd2e765c84b35cbaea9730226ad5f6e33ecddda09262befa4cd7a73dcff35452659cb7ceda2208bd5dd62ddf42dfe
7
- data.tar.gz: ccf3876fff45a581ad547b693eb85fe5e4edd368e8a567448be4a82f552d1f6ee9dd124c345adee48113e196d5abf0822052a5a45eaa10cbfebda782387f7c48
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. Only token auth working.
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
- @server_index_connection_index = RubyApiPackCloudways::Api::CwLists.cw_server_list
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
- <% @server_index_connection_index.each do |continent| %>
26
+ <% @provider_list.each do |provider| %>
27
27
 
28
- <%= continent["id"] %>
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
- def self.cw_server_list
6
- cw_api_list_server = Connection::CwConnect.new(CW_API_URL, "/server")
7
- return Oj.load(cw_api_list_server.cloudways_api_connection.body)["servers"]
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
- def self.cw_providers_list
11
- providers_lists = Connection::CwConnect.new(CW_API_URL, "/providers")
12
- return Oj.load(providers_lists.cloudways_api_connection.body)["providers"]
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
@@ -18,6 +18,7 @@ module RubyApiPackCloudways
18
18
 
19
19
  # Load API Files
20
20
  require_relative "api/cw_lists"
21
+ require_relative "api/cw_server"
21
22
 
22
23
  end
23
24
  end
@@ -1,3 +1,3 @@
1
1
  module RubyApiPackCloudways
2
- VERSION = "0.1.0.beta.5"
2
+ VERSION = "0.1.0.pre.1"
3
3
  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.beta.5
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-14 00:00:00.000000000 Z
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/universal_api_wrapper_pack/
140
- changelog_uri: https://github.com/phcdevworks/universal_api_wrapper_pack/releases
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: