sfrest 0.0.42 → 0.0.43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sfrest/update.rb +16 -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: 072b940e3399ceb72f13d948ea766039eb4452c62925b1c2a1492072c5fb8557
|
4
|
+
data.tar.gz: 23e9bee2aefc2abce1b9aa86c0c99fee8fb3d7c4ca716b8957923f75ca0e0c5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f07d0676a52f33daf4d63564066fd3318ab25a11032d464444bc4111716b364618c71febb5ec948c073af6fc4b429baccc8ee7d3b3b01b0a67c165b08872e555
|
7
|
+
data.tar.gz: 5be39a40373a247f71142b07d942644a3c9469e312e1460e3dd4e449e346da69276a401c28dee62446bf46d69048391fa62848542311c9d5f3e5969085f13184
|
data/lib/sfrest/update.rb
CHANGED
@@ -100,6 +100,22 @@ module SFRest
|
|
100
100
|
@multi_stack ||= @conn.codebase.list['stacks'].size > 1
|
101
101
|
end
|
102
102
|
|
103
|
+
# Terminates an updater.
|
104
|
+
def terminate_updater(update_id)
|
105
|
+
current_path = "/api/v1/update/#{update_id}"
|
106
|
+
@conn.delete(current_path)
|
107
|
+
end
|
108
|
+
|
109
|
+
# Changes the updater start time.
|
110
|
+
def change_updater_start_time(updater_id, new_update_time)
|
111
|
+
current_path = '/api/v1/update/change_time'
|
112
|
+
payload = {
|
113
|
+
'updater_id' => updater_id,
|
114
|
+
'new_update_time' => new_update_time
|
115
|
+
}.to_json
|
116
|
+
@conn.post(current_path, payload)
|
117
|
+
end
|
118
|
+
|
103
119
|
# Determines if the v2 endpoint exists.
|
104
120
|
# A factory with the endpoint will raise an SFRest::BadRequestError
|
105
121
|
# A factory without the endpoint will raise SFRest::InvalidResponse
|
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.43
|
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
|
+
date: 2022-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|