aspera-cli 4.19.0 → 4.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/CHANGELOG.md +46 -0
  4. data/CONTRIBUTING.md +18 -4
  5. data/README.md +886 -510
  6. data/bin/asession +27 -20
  7. data/examples/build_exec +65 -76
  8. data/examples/build_exec_rubyc +40 -0
  9. data/examples/get_proto_file.rb +7 -0
  10. data/lib/aspera/agent/alpha.rb +18 -24
  11. data/lib/aspera/agent/base.rb +2 -18
  12. data/lib/aspera/agent/connect.rb +34 -15
  13. data/lib/aspera/agent/direct.rb +44 -54
  14. data/lib/aspera/agent/httpgw.rb +2 -3
  15. data/lib/aspera/agent/node.rb +11 -21
  16. data/lib/aspera/agent/{trsdk.rb → transferd.rb} +27 -51
  17. data/lib/aspera/api/alee.rb +15 -0
  18. data/lib/aspera/api/aoc.rb +139 -105
  19. data/lib/aspera/api/ats.rb +1 -1
  20. data/lib/aspera/api/cos_node.rb +1 -1
  21. data/lib/aspera/api/httpgw.rb +15 -10
  22. data/lib/aspera/api/node.rb +70 -32
  23. data/lib/aspera/ascmd.rb +56 -48
  24. data/lib/aspera/ascp/installation.rb +166 -70
  25. data/lib/aspera/ascp/management.rb +30 -8
  26. data/lib/aspera/assert.rb +10 -5
  27. data/lib/aspera/cli/formatter.rb +166 -162
  28. data/lib/aspera/cli/hints.rb +2 -1
  29. data/lib/aspera/cli/info.rb +12 -10
  30. data/lib/aspera/cli/main.rb +28 -13
  31. data/lib/aspera/cli/manager.rb +7 -2
  32. data/lib/aspera/cli/plugin.rb +17 -31
  33. data/lib/aspera/cli/plugins/alee.rb +3 -3
  34. data/lib/aspera/cli/plugins/aoc.rb +246 -208
  35. data/lib/aspera/cli/plugins/ats.rb +16 -14
  36. data/lib/aspera/cli/plugins/config.rb +154 -94
  37. data/lib/aspera/cli/plugins/console.rb +3 -3
  38. data/lib/aspera/cli/plugins/cos.rb +1 -0
  39. data/lib/aspera/cli/plugins/faspex.rb +15 -23
  40. data/lib/aspera/cli/plugins/faspex5.rb +64 -50
  41. data/lib/aspera/cli/plugins/faspio.rb +2 -2
  42. data/lib/aspera/cli/plugins/httpgw.rb +1 -1
  43. data/lib/aspera/cli/plugins/node.rb +174 -109
  44. data/lib/aspera/cli/plugins/orchestrator.rb +14 -13
  45. data/lib/aspera/cli/plugins/preview.rb +8 -9
  46. data/lib/aspera/cli/plugins/server.rb +5 -9
  47. data/lib/aspera/cli/plugins/shares.rb +2 -2
  48. data/lib/aspera/cli/sync_actions.rb +2 -2
  49. data/lib/aspera/cli/transfer_agent.rb +12 -14
  50. data/lib/aspera/cli/transfer_progress.rb +37 -17
  51. data/lib/aspera/cli/version.rb +1 -1
  52. data/lib/aspera/command_line_builder.rb +4 -5
  53. data/lib/aspera/coverage.rb +13 -1
  54. data/lib/aspera/environment.rb +75 -25
  55. data/lib/aspera/faspex_gw.rb +2 -2
  56. data/lib/aspera/json_rpc.rb +1 -1
  57. data/lib/aspera/keychain/macos_security.rb +7 -12
  58. data/lib/aspera/log.rb +3 -4
  59. data/lib/aspera/node_simulator.rb +230 -112
  60. data/lib/aspera/oauth/base.rb +64 -83
  61. data/lib/aspera/oauth/factory.rb +52 -6
  62. data/lib/aspera/oauth/generic.rb +4 -8
  63. data/lib/aspera/oauth/jwt.rb +6 -3
  64. data/lib/aspera/oauth/url_json.rb +1 -2
  65. data/lib/aspera/oauth/web.rb +5 -2
  66. data/lib/aspera/persistency_action_once.rb +16 -8
  67. data/lib/aspera/persistency_folder.rb +20 -2
  68. data/lib/aspera/preview/generator.rb +1 -1
  69. data/lib/aspera/preview/utils.rb +11 -17
  70. data/lib/aspera/products/alpha.rb +30 -0
  71. data/lib/aspera/products/connect.rb +48 -0
  72. data/lib/aspera/products/other.rb +82 -0
  73. data/lib/aspera/products/transferd.rb +54 -0
  74. data/lib/aspera/rest.rb +116 -87
  75. data/lib/aspera/secret_hider.rb +2 -2
  76. data/lib/aspera/ssh.rb +31 -24
  77. data/lib/aspera/transfer/faux_file.rb +4 -4
  78. data/lib/aspera/transfer/parameters.rb +16 -17
  79. data/lib/aspera/transfer/spec.rb +12 -12
  80. data/lib/aspera/transfer/spec.yaml +22 -20
  81. data/lib/aspera/transfer/sync.rb +2 -10
  82. data/lib/aspera/transfer/uri.rb +3 -3
  83. data/lib/aspera/uri_reader.rb +1 -1
  84. data/lib/aspera/web_auth.rb +166 -17
  85. data/lib/aspera/web_server_simple.rb +4 -3
  86. data/lib/transferd_pb.rb +86 -0
  87. data/lib/transferd_services_pb.rb +84 -0
  88. data.tar.gz.sig +0 -0
  89. metadata +58 -22
  90. metadata.gz.sig +0 -0
  91. data/lib/aspera/ascp/products.rb +0 -156
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89df3ebc2bf7a146a16e59154a73efcfc2e11f7767aba28725f9443de04772b7
4
- data.tar.gz: 33469a2bc4991b106ab3002927e823f280c016fc070a2bdcbb3edb286506041d
3
+ metadata.gz: 94d8abaf1bf8e938fe9ef79a7f0ecc06870b799d44acb0783a8638e88be8585d
4
+ data.tar.gz: b8aeca6b8c34446aac0f4b54fac0ee52db502a6e28149583e30536cc7ba3ab58
5
5
  SHA512:
6
- metadata.gz: d57c69a340b866cfe5c3003c94ecb3ebc8c61aba7011ee4b8683da60d9615dd060fb94ac153e16eb98bd11f7dfa1deb117b1ca2ecd5bfe5d46e5a390ec290a01
7
- data.tar.gz: fa364474177bc6d2f648474b1eed12b45733e84a5d4896d3075225ed1212aed27f64725ba38a400a3f9c5da2e7e2acf46d6a41164e5d92c1e2ce3a94498c5401
6
+ metadata.gz: e90b2de02a88fc84ca2e97df962f054200e14c8c2020dd1a1f42f271b15e0f8ca1e67a4ffaefda7c10f6a69c28611a83d400e140c8ccc9e4edb6f56399db8fe8
7
+ data.tar.gz: 6688107fb04c162b4c18bcc45c1450c73170ecae5d430af782ba596e5879fdaf0ecd01020e8ba48c2b39a543d3f0bb3b88f689242ee98714cfa6bd658b92b520
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,6 +1,52 @@
1
1
  # Changes (Release notes)
2
2
 
3
+ * 4.21.1
4
+
5
+ * New Features:
6
+ * `config`: New command: `transferd` to list and install specific version of `asperatransferd` and `ascp`
7
+ * `config`: New command: `token` to list and flush cached tokens.
8
+ * `faspex5`: New command: `admin contact reset_password`
9
+ * `config`: New command: `tokens` with `list`, `show`, `flush` (replace `flush_tokens`)
10
+ * `aoc`: #178 packages can be browsed, and individual files can be downloaded now.
11
+ * Issues Fixed:
12
+ * `config`: #180 problem in `ascp install`
13
+ * `aoc`: #184 token cache shall be different per aoc org.
14
+ * `config`: Soft links in transfer SDK archive are correctly extracted
15
+ * `aoc`: Fix `packages delete` not working.
16
+ * `direct` agent: #174 Race condition fix with `ascp`: timeout waiting mgt port connect (select not readable)
17
+ * `config`: #175 `ascli config preset set GLOBAL version_check_days 0` causes a bad `config.yaml` to be written
18
+ * `preview`: #177 fix bug that prevents preview generation to work.
19
+ * Breaking Changes:
20
+ * **global** : Ruby minimum versions is now 3.1 (mainly due to switch to openssl 3). Future minimum is 3.2. Recommended is 3.4.
21
+ * `transferd`: Use of Aspera Transfer Daemon requires minimum version 1.1.4. agent `trsdk` renamed `transferd`.
22
+ * `ascp`: Default SDK version is now 1.1.4. Removes support for ascp4.
23
+ * **global** : Options `transpose_single` and `multi_table` replaced with single option `multi_single` and values: `no`, `yes`, `single`.
24
+ * **global** : Column name for single object is now `field` instead of `key`.
25
+ * **global** : Ruby minimum versions is now 2.7 (2.6 previously, that removes macOS default ruby support, but newer ruby version can be installed on macOS)
26
+ * `node`: Removed deprecated command prefix `exec:`, use `@ruby:` instead.
27
+ * **global** : Now uses openssl 3.
28
+
29
+ * 4.20.0
30
+
31
+ ATTENTION: [Faspex version 4 is now end of support](https://www.ibm.com/support/pages/lifecycle/search?q=faspex): the `faspex` plugin will be deprecated. Servers shall be upgraded to Faspex 5, and users use plugin `faspex5`.
32
+
33
+ * New Features:
34
+ * `aoc`: Improved usability for creation of Admin shared folders.
35
+ * `node`: New option `node_cache` (bool) for gen4 operations.
36
+ * `node`: Option `root_id` now works always for node gen4, as well as `%id:` for file selection in addition to path.
37
+ * `node`: `transfer list` now uses the `iteration_token` to retrieve all values. Option `once_only` is now supported.
38
+ * **global** : option `http_options` now include retry options.
39
+ * Issues Fixed:
40
+ * `aoc`: Fixed `find` command not working. (undefined variable)
41
+ * `aoc`: #165 aoc mkdir now follows the last link of containing folder
42
+ * Breaking Changes:
43
+ * Internal: Basic REST calls now return data directly. (no more `data` key). For advanced calls, use `call`.
44
+ * Internal: Transfer SDK download is now a 2-step procedure: First get the YAML file from github with URLS for the various platforms and versions, and then download the archive from the official IBM repository.
45
+ **global**: option `format=multi` is replaced with option `multi_table=yes`
46
+ * `faspex5`: removed deprecated option `value` replaced with positional parameter.
47
+
3
48
  * 4.19.0
49
+
4
50
  * New Features:
5
51
  * `server`: add support for `async` (Aspera Sync) from Transfer SDK
6
52
  * **global**: #156 support sending folders with httpgw
data/CONTRIBUTING.md CHANGED
@@ -226,6 +226,16 @@ Then procedure is as follows:
226
226
  SIGNING_KEY=/path/to/vault/gem-private_key.pem make check-cert-key
227
227
  ```
228
228
 
229
+ ### gRPC stubs for transfer SDK
230
+
231
+ Update with:
232
+
233
+ ```bash
234
+ make grpc
235
+ ```
236
+
237
+ It downloads the latest proto file and then compiles it.
238
+
229
239
  ## Docker image build
230
240
 
231
241
  The `Dockerfile.tmpl.erb` template allows customization of the optional copying of the `aspera-cli.gem` file, as opposed to installing from rubygems.org. It also supports customizing the retrieval of the SDK.
@@ -255,11 +265,11 @@ make docker_push
255
265
 
256
266
  ### Specific version image build
257
267
 
258
- To build a specific version: set envvar `GEM_VERSION` and `make` with option `-e`:
268
+ To build a specific version: override `make` macro `GEM_VERSION`:
259
269
 
260
270
  ```bash
261
- GEM_VERSION=4.11.0 make -e docker
262
- GEM_VERSION=4.11.0 make -e docker_push
271
+ make docker GEM_VERSION=4.11.0
272
+ make docker_push GEM_VERSION=4.11.0
263
273
  ```
264
274
 
265
275
  > **Note:** This does not use the locally generated gem file.
@@ -280,10 +290,14 @@ make docker_push_beta
280
290
 
281
291
  Initially, `rubyc` (gem [`ruby-packer`](https://github.com/pmq20/ruby-packer) and [here](https://github.com/you54f/ruby-packer)) was used to build a single executable.
282
292
 
283
- https://www.tebako.org/
293
+ <https://www.tebako.org/>
284
294
 
285
295
  A modern version of this is now used: [`tebako`](https://github.com/tamatebako/tebako) for which a container is provided.
286
296
 
297
+ ```bash
298
+ make single GEM_VERSION=4.11.0
299
+ ```
300
+
287
301
  ## Long Term Implementation and delivery improvements
288
302
 
289
303
  - replace rest and oauth classes with ruby standard gems: