sfrest 0.0.45 → 0.0.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sfrest/domains.rb +13 -0
- data/lib/sfrest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7c3089a14ab003da825c324f48c4e5566e1aed291697620497356a73dd1570d
|
4
|
+
data.tar.gz: 1435a6839f32c63347f98c7b7a0e287d9505242cd5b7a9b0aefdfa7bae4c5c9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 840a9efdf45a6e4fd89c7961a58200d3af33a4e8dac09cb6ba3189f5a963cc33ee96979146a7702880034d98a448f4d1a9fc578f656c908ac0d0a34f7e8ce184
|
7
|
+
data.tar.gz: ac0f053e2777687b0580b972ef10d83e8bbc3dbb7988b3915043111701773c70e8df5189f958bc8813ac078bb2d7689b38e6d8563f3afd84331091b08abfc669
|
data/lib/sfrest/domains.rb
CHANGED
@@ -20,6 +20,19 @@ module SFRest
|
|
20
20
|
@conn.get(current_path)
|
21
21
|
end
|
22
22
|
|
23
|
+
# Get all domains of all sites known to site factory.
|
24
|
+
# @param [Hash] opts - 'limit' and 'page' are supported for pagination.
|
25
|
+
# @return [Hash] {
|
26
|
+
# "count": 111,
|
27
|
+
# "domains": [
|
28
|
+
# {'nid' => 2, 'domain' => 'foobar.com', 'type' => 'simple', 'readonly' => true},
|
29
|
+
# {'nid' => 6, 'domain' => 'zoofoo.com', 'type' => 'customerStandard', 'readonly' => false}
|
30
|
+
# ]}
|
31
|
+
def get_all(**opts)
|
32
|
+
current_path = "/api/v1/domains?#{URI.encode_www_form(opts)}"
|
33
|
+
@conn.get(current_path)
|
34
|
+
end
|
35
|
+
|
23
36
|
# Get the custom domains on a node
|
24
37
|
# @param [Integer] node_id The id of the node.
|
25
38
|
#
|
data/lib/sfrest/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sfrest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.46
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ACSF Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|