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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 072b940e3399ceb72f13d948ea766039eb4452c62925b1c2a1492072c5fb8557
4
- data.tar.gz: 23e9bee2aefc2abce1b9aa86c0c99fee8fb3d7c4ca716b8957923f75ca0e0c5c
3
+ metadata.gz: 15bac5247b3e3d00d8768db3340f88a89bbe0de1b9be834fd7e33b894ad07c9f
4
+ data.tar.gz: e854d3e6b0dc267d9bd2d7c859481cfa53fa3e668da0eb328cefa2958e187fd6
5
5
  SHA512:
6
- metadata.gz: f07d0676a52f33daf4d63564066fd3318ab25a11032d464444bc4111716b364618c71febb5ec948c073af6fc4b429baccc8ee7d3b3b01b0a67c165b08872e555
7
- data.tar.gz: 5be39a40373a247f71142b07d942644a3c9469e312e1460e3dd4e449e346da69276a401c28dee62446bf46d69048391fa62848542311c9d5f3e5969085f13184
6
+ metadata.gz: f45092c3c47e83d4489e4c5bb22e56886072f1e93f2ad4a3cb9023ebb73f2d7ad569a604f242952958b3a752d62b97fb1b4c7893a6d7ecf4222359ebf0cfb632
7
+ data.tar.gz: 99719c9f33909d86ad410f6e54cdc73699a96a5ea6e27e73d1b957da43787ce13f1d6e25cd6c42bf5bc70f4c0c598e00f02c86b16aba6eb088e6df7e431b63b7
@@ -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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module SFRest
4
4
  # Just tracks the version of sfrest.
5
- VERSION = '0.0.43'
5
+ VERSION = '0.0.44'
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.43
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-07-15 00:00:00.000000000 Z
11
+ date: 2022-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon