aspera-cli 4.18.1 → 4.20.0

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 (85) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/CHANGELOG.md +33 -0
  4. data/CONTRIBUTING.md +17 -12
  5. data/README.md +396 -185
  6. data/bin/asession +26 -19
  7. data/examples/build_exec +74 -0
  8. data/examples/{rubyc → build_exec_rubyc} +18 -2
  9. data/examples/get_proto_file.rb +7 -0
  10. data/lib/aspera/agent/alpha.rb +8 -8
  11. data/lib/aspera/agent/base.rb +4 -18
  12. data/lib/aspera/agent/connect.rb +14 -13
  13. data/lib/aspera/agent/direct.rb +123 -120
  14. data/lib/aspera/agent/httpgw.rb +2 -3
  15. data/lib/aspera/agent/node.rb +10 -10
  16. data/lib/aspera/agent/trsdk.rb +17 -20
  17. data/lib/aspera/api/alee.rb +15 -0
  18. data/lib/aspera/api/aoc.rb +128 -99
  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 +104 -64
  22. data/lib/aspera/api/node.rb +33 -12
  23. data/lib/aspera/ascmd.rb +56 -48
  24. data/lib/aspera/ascp/installation.rb +142 -70
  25. data/lib/aspera/ascp/management.rb +7 -3
  26. data/lib/aspera/ascp/products.rb +13 -7
  27. data/lib/aspera/assert.rb +10 -5
  28. data/lib/aspera/cli/formatter.rb +42 -26
  29. data/lib/aspera/cli/hints.rb +2 -1
  30. data/lib/aspera/cli/info.rb +12 -10
  31. data/lib/aspera/cli/main.rb +16 -13
  32. data/lib/aspera/cli/manager.rb +15 -10
  33. data/lib/aspera/cli/plugin.rb +17 -31
  34. data/lib/aspera/cli/plugin_factory.rb +10 -1
  35. data/lib/aspera/cli/plugins/alee.rb +3 -3
  36. data/lib/aspera/cli/plugins/aoc.rb +222 -194
  37. data/lib/aspera/cli/plugins/ats.rb +16 -14
  38. data/lib/aspera/cli/plugins/config.rb +66 -53
  39. data/lib/aspera/cli/plugins/console.rb +3 -3
  40. data/lib/aspera/cli/plugins/faspex.rb +11 -21
  41. data/lib/aspera/cli/plugins/faspex5.rb +44 -42
  42. data/lib/aspera/cli/plugins/faspio.rb +2 -2
  43. data/lib/aspera/cli/plugins/httpgw.rb +1 -1
  44. data/lib/aspera/cli/plugins/node.rb +155 -96
  45. data/lib/aspera/cli/plugins/orchestrator.rb +14 -13
  46. data/lib/aspera/cli/plugins/preview.rb +8 -9
  47. data/lib/aspera/cli/plugins/server.rb +6 -10
  48. data/lib/aspera/cli/plugins/shares.rb +13 -9
  49. data/lib/aspera/cli/sync_actions.rb +72 -31
  50. data/lib/aspera/cli/transfer_agent.rb +13 -14
  51. data/lib/aspera/cli/transfer_progress.rb +36 -18
  52. data/lib/aspera/cli/version.rb +1 -1
  53. data/lib/aspera/command_line_builder.rb +3 -4
  54. data/lib/aspera/coverage.rb +13 -1
  55. data/lib/aspera/environment.rb +59 -10
  56. data/lib/aspera/faspex_gw.rb +3 -3
  57. data/lib/aspera/json_rpc.rb +1 -1
  58. data/lib/aspera/keychain/encrypted_hash.rb +2 -0
  59. data/lib/aspera/keychain/macos_security.rb +7 -12
  60. data/lib/aspera/log.rb +4 -4
  61. data/lib/aspera/node_simulator.rb +1 -1
  62. data/lib/aspera/oauth/base.rb +39 -45
  63. data/lib/aspera/oauth/factory.rb +11 -4
  64. data/lib/aspera/oauth/generic.rb +4 -8
  65. data/lib/aspera/oauth/jwt.rb +4 -4
  66. data/lib/aspera/oauth/url_json.rb +3 -2
  67. data/lib/aspera/oauth/web.rb +10 -6
  68. data/lib/aspera/persistency_action_once.rb +16 -8
  69. data/lib/aspera/preview/utils.rb +5 -16
  70. data/lib/aspera/rest.rb +100 -76
  71. data/lib/aspera/secret_hider.rb +3 -2
  72. data/lib/aspera/ssh.rb +1 -1
  73. data/lib/aspera/transfer/faux_file.rb +7 -5
  74. data/lib/aspera/transfer/parameters.rb +41 -35
  75. data/lib/aspera/transfer/spec.rb +16 -18
  76. data/lib/aspera/transfer/sync.rb +51 -50
  77. data/lib/aspera/transfer/uri.rb +1 -1
  78. data/lib/aspera/uri_reader.rb +1 -1
  79. data/lib/aspera/web_auth.rb +166 -18
  80. data/lib/aspera/web_server_simple.rb +27 -15
  81. data/lib/transfer_pb.rb +84 -0
  82. data/lib/transfer_services_pb.rb +82 -0
  83. data.tar.gz.sig +0 -0
  84. metadata +25 -6
  85. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98185fd9f823fc0d85ebf7183d5c88cf6e0aac7cafd8325802bfa0724c52ddf4
4
- data.tar.gz: 848811c07aa60060cae1320cd0512e72a73bb78fee9e1837245ef856af3883de
3
+ metadata.gz: 3fb5a0fc5c22da5479bff1858e9bedd7188e7622c751f7560af1f0ce318fffc9
4
+ data.tar.gz: 22cb2c17972d50bc198a63cce4c8a29dbb52dc184fa1ffda6a220cd793ef4e28
5
5
  SHA512:
6
- metadata.gz: ede08e6e6c6ce3ef33d0c402730ee1854b5d0364da3d47ef736f0e7680a9f8cc1098316fe5945c15aab98ed931c26dd625ea7fb9673e70068dfd2755bb7a053a
7
- data.tar.gz: 1bf901163167844fbada435d0cbac759075b51e9f2da22f6f2b97e99be53c202d69e83ec38f0ee4cade3f937a29c502e22e75ac4452b5e0bb426b0fafa7d883c
6
+ metadata.gz: 3e468ed7fae059b54a56402bf4a1e414eb28cfe527325f22f645b9bfe754ba2a2084298186b6a0afceef8698e87a914045132c1126ab39d7b75163dc50d4440f
7
+ data.tar.gz: 4c774e429d9b364b3e5382873e4926fecd355b2d5504af30a7ce5814cc556c5686c50c309ba10f89ba5e1e6666651fcd195266d043d27be5cc77f9abad4735e3
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,6 +1,39 @@
1
1
  # Changes (Release notes)
2
2
 
3
+ * 4.20.0
4
+
5
+ ATTENTIION: Due to the fact that Faspex version 4 is end of support, the `faspex` command will be deprecated. Use Faspex 5 from now.
6
+
7
+ * New Features:
8
+ * `aoc`: Improved usability for creation of Admin shared folders.
9
+ * `node`: New option `node_cache` (bool) for gen4 operations.
10
+ * `node`: Option `root_id` now works always for node gen4, as well as `%id:` for file selection in addition to path.
11
+ * `node`: `transfer list` now uses the `iteratin_token` to retrieve all values. Option `once_only` is now supported.
12
+ * `global` : option `http_options` now include retry options.
13
+ * Issues Fixed:
14
+ * `aoc`: Fixed `find` command not working. (undefined variable)
15
+ * `aoc`: #165 aoc mkdir now follows the last link of containing folder
16
+ * Breaking Changes:
17
+ * Internal: Basic REST calls now return data directly. (no more `data` key). For advanced calls, use `call`.
18
+ * 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.
19
+ **global**: option `format=multi` is replaced with option `multi_table=yes`
20
+ * `faspex5`: removed deprecated option `value` replaced with positional parameter.
21
+
22
+ * 4.19.0
23
+
24
+ * New Features:
25
+ * `server`: add support for `async` (Aspera Sync) from Transfer SDK
26
+ * **global**: #156 support sending folders with httpgw
27
+ * **global**: new value for option `format`: `multi`
28
+ * Issues Fixed:
29
+ * `aoc`: #157 fix problem with `files browse` on a link
30
+ * `sync`: better documentation and handling of options.
31
+ * Breaking Changes:
32
+ * **global**: Default value for direct agent option `transfer_info.multi_incr_udp` is `true` on Windows, and now `false` on other platforms.
33
+ * **global**: Token based transfers now use the RSA key only. Direct agent option `transfer_info.client_ssh_key` allows changing this behavior.
34
+
3
35
  * 4.18.1
36
+
4
37
  * New Features:
5
38
  * none
6
39
  * Issues Fixed:
data/CONTRIBUTING.md CHANGED
@@ -226,9 +226,17 @@ 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
+
229
237
  ## Docker image build
230
238
 
231
- The Dockerfile template allows customizing the optional copy of gem file , versus install from rubygems,org as well as customizing the retrieval of the SDK.
239
+ 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.
232
240
 
233
241
  ### Default image build
234
242
 
@@ -255,11 +263,11 @@ make docker_push
255
263
 
256
264
  ### Specific version image build
257
265
 
258
- To build a specific version: set envvar `GEM_VERSION` and `make` with option `-e`:
266
+ To build a specific version: override `make` macro `GEM_VERSION`:
259
267
 
260
268
  ```bash
261
- GEM_VERSION=4.11.0 make -e docker
262
- GEM_VERSION=4.11.0 make -e docker_push
269
+ make docker GEM_VERSION=4.11.0
270
+ make docker_push GEM_VERSION=4.11.0
263
271
  ```
264
272
 
265
273
  > **Note:** This does not use the locally generated gem file.
@@ -278,18 +286,14 @@ make docker_push_beta
278
286
 
279
287
  ## Single executable build
280
288
 
281
- It is possible to build `ascli` as a single native executable using `rubyc` (gem `ruby-packer`).
282
-
283
- ```bash
284
- make single
285
- ```
289
+ 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.
286
290
 
287
- This is based on tool `rubyc` (gem `ruby-packer`): either place the executable in folder `tmp`, or the architecture-specific version will be automatically downloaded.
291
+ <https://www.tebako.org/>
288
292
 
289
- > **Note:** Perl `Findbin` is needed, install on Linux with:
293
+ A modern version of this is now used: [`tebako`](https://github.com/tamatebako/tebako) for which a container is provided.
290
294
 
291
295
  ```bash
292
- sudo dnf install -y perl perl-FindBin perl-IPC-Cmd
296
+ make single GEM_VERSION=4.11.0
293
297
  ```
294
298
 
295
299
  ## Long Term Implementation and delivery improvements
@@ -299,3 +303,4 @@ sudo dnf install -y perl perl-FindBin perl-IPC-Cmd
299
303
  - <https://github.com/oauth-xx/oauth2>
300
304
  - use gem Thor <http://whatisthor.com/> (or other standard Ruby CLI manager)
301
305
  - Package a single-file executable for various architectures with <https://github.com/pmq20/ruby-packer> (`rubyc`)
306
+ - look at <https://github.com/phusion/traveling-ruby>