sfrest 0.0.43 → 0.0.44
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sfrest/codebase.rb +23 -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: 15bac5247b3e3d00d8768db3340f88a89bbe0de1b9be834fd7e33b894ad07c9f
|
4
|
+
data.tar.gz: e854d3e6b0dc267d9bd2d7c859481cfa53fa3e668da0eb328cefa2958e187fd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f45092c3c47e83d4489e4c5bb22e56886072f1e93f2ad4a3cb9023ebb73f2d7ad569a604f242952958b3a752d62b97fb1b4c7893a6d7ecf4222359ebf0cfb632
|
7
|
+
data.tar.gz: 99719c9f33909d86ad410f6e54cdc73699a96a5ea6e27e73d1b957da43787ce13f1d6e25cd6c42bf5bc70f4c0c598e00f02c86b16aba6eb088e6df7e431b63b7
|
data/lib/sfrest/codebase.rb
CHANGED
@@ -14,5 +14,28 @@ module SFRest
|
|
14
14
|
def list
|
15
15
|
@conn.get('/api/v1/stacks')
|
16
16
|
end
|
17
|
+
|
18
|
+
# Edits stack name and description.
|
19
|
+
# @param [Integer] stack_id.
|
20
|
+
# @param [String] name.
|
21
|
+
# @param [String] description.
|
22
|
+
# @param [String] tangle_alias.
|
23
|
+
#
|
24
|
+
# @return [Array] an array containing the message given by the server.
|
25
|
+
def edit_stacks(stack_id, name, description, tangle_alias)
|
26
|
+
payload = {
|
27
|
+
'name' => name,
|
28
|
+
'description' => description,
|
29
|
+
'tangle_alias' => tangle_alias
|
30
|
+
}
|
31
|
+
@conn.put("/api/v1/stacks/#{stack_id}", payload.to_json)
|
32
|
+
end
|
33
|
+
|
34
|
+
# Lists the codebases with details.
|
35
|
+
# @return [Hash] A hash of codebases with details configured for the factory.
|
36
|
+
# {"1": {"id": 1, "name": "name", "description": "description", "tangle_alias": "tangle1"} }
|
37
|
+
def stacks_with_details
|
38
|
+
@conn.get('/api/v1/stacks/details')
|
39
|
+
end
|
17
40
|
end
|
18
41
|
end
|
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.44
|
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-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|