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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51d36dbe0a29aba983d022e9994d5ae195c43091c2ba789cb14fd629cc6165ed
4
- data.tar.gz: 07b3f754680dfa15977ecbadb44becee43aa26cc0faf7bdeb524bfeb315b63bb
3
+ metadata.gz: 8ed946f6b0298f0ca4df3ac69cd0e115d753dc0ced81f3273ec553d6a74e63e0
4
+ data.tar.gz: 614d2820f4d859fc6baca75af35ace650d325c7021315a7b2a0721914f3322d4
5
5
  SHA512:
6
- metadata.gz: b8c55a2e20dc000a7c428a2e5687cd3017af74b21879dda024e941e7c66c249bac3fcadb6781c3b5848b851a375bd14b4e8835818ca16cbbe433c031d96c3dfe
7
- data.tar.gz: b1e43ff4361ae815f98642451cf7aaefdb902f12d16ea830932c8677a259bb3bd98a3ea367d3db3110298af76e33b56837be3f0b2355b73305aafe3570a51005
6
+ metadata.gz: 70e0dfc842e24b9c56ba1dcb3dd2490979f82083666bdc50dd3dcacc52252da17e5b2366c55f0cd526a6cc78385b7c69fb5b5f87d0d954f387bccb007d0efe1d
7
+ data.tar.gz: 29da6afca5ea8ad958b9c8f6d01f9a7e3c065bb0056e57e7cc5d7f72c9253569b371bbcb942990606f392ae2550a79d608f6819b9cf8303b00e88242245f33f4
@@ -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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module SFRest
4
4
  # Just tracks the version of sfrest.
5
- VERSION = '0.0.45'
5
+ VERSION = '0.0.47'
6
6
  end
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.45
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: 2022-11-18 00:00:00.000000000 Z
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.3.12
152
+ rubygems_version: 3.4.22
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: Acquia Site Factory Rest API.