sfrest 0.0.45 → 0.0.47
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/task.rb +8 -0
- data/lib/sfrest/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ed946f6b0298f0ca4df3ac69cd0e115d753dc0ced81f3273ec553d6a74e63e0
|
4
|
+
data.tar.gz: 614d2820f4d859fc6baca75af35ace650d325c7021315a7b2a0721914f3322d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70e0dfc842e24b9c56ba1dcb3dd2490979f82083666bdc50dd3dcacc52252da17e5b2366c55f0cd526a6cc78385b7c69fb5b5f87d0d954f387bccb007d0efe1d
|
7
|
+
data.tar.gz: 29da6afca5ea8ad958b9c8f6d01f9a7e3c065bb0056e57e7cc5d7f72c9253569b371bbcb942990606f392ae2550a79d608f6819b9cf8303b00e88242245f33f4
|
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/task.rb
CHANGED
@@ -172,6 +172,14 @@ module SFRest
|
|
172
172
|
@conn.get URI.parse(pb.build_url_query(current_path, datum)).to_s
|
173
173
|
end
|
174
174
|
|
175
|
+
# Retrieve a specific task by ID.
|
176
|
+
# @param [Integer] task_id The ID of the task to retrieve.
|
177
|
+
# @return [Hash] The task information.
|
178
|
+
def find_task(task_id)
|
179
|
+
current_path = "/api/v1/tasks/#{task_id}"
|
180
|
+
@conn.get(current_path)
|
181
|
+
end
|
182
|
+
|
175
183
|
# Looks for a task with a specific name
|
176
184
|
# @param [String] name display name of the task
|
177
185
|
# @param [String] group task group filter
|
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.47
|
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: 2024-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
|
-
rubygems_version: 3.
|
152
|
+
rubygems_version: 3.4.22
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: Acquia Site Factory Rest API.
|