clever-tools 2.9.0 → 2.9.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # clever-tools changelog
2
2
 
3
+ ## Unrelease (????-??-??)
4
+
5
+ ...
6
+
7
+ ## 2.9.1 (2022-02-28)
8
+
9
+ * Upgrade opn to open
10
+
3
11
  ## 2.9.0 (2022-01-12)
4
12
 
5
13
  * Add NewRelic support in `clever drains`
package/README.md CHANGED
@@ -6,7 +6,7 @@ Command Line Interface for Clever Cloud.
6
6
 
7
7
  ## Installation
8
8
 
9
- The clever-tools CLI can be installed through many different channels depending on your system setup.
9
+ The clever-tools CLI can be installed through many channels depending on your system setup.
10
10
 
11
11
  ### Via npm
12
12
 
@@ -30,26 +30,28 @@ npm install -g clever-tools@beta
30
30
 
31
31
  ##### Warning
32
32
 
33
- Bintray is ending on May 1st 2021, we will migrate hosting as soon as possible. Please refer to the dedicated [issue](https://github.com/CleverCloud/clever-tools/issues/454) to track the migration.
33
+ We recently moved from Bintray to a self-hosted Nexus repository available at [https://nexus.clever-cloud.com](https://nexus.clever-cloud.com).
34
+ If you were using Bintray to install our `.deb` packages, you will need to edit your `/etc/apt/sources.list` and remove the old entry with `https://dl.bintray.com/clevercloud/deb` before going further.
34
35
 
35
36
  ---
36
37
 
37
38
  If you are using a GNU/Linux distribution that uses `.deb` packages like Debian or Ubuntu, you can run:
38
39
 
39
40
  ```sh
40
- apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys "379CE192D401AB61"
41
- echo "deb https://dl.bintray.com/clevercloud/deb stable main" | tee -a /etc/apt/sources.list
41
+ curl -fsSL https://clever-tools.clever-cloud.com/gpg/cc-nexus-deb.public.gpg.key | gpg --dearmor -o /usr/share/keyrings/cc-nexus-deb.gpg
42
+ echo "deb [signed-by=/usr/share/keyrings/cc-nexus-deb.gpg] https://nexus.clever-cloud.com/repository/deb stable main" | tee -a /etc/apt/sources.list
42
43
  apt-get update
43
44
  apt-get install clever-tools
44
45
  ```
45
46
 
46
47
  NOTES:
47
48
 
48
- * The `.deb` packages are hosted on Bintray (their GPG key is required to trust their signed packages).
49
+ * The `.deb` packages are hosted on Clever Cloud's public Nexus instance available at [https://nexus.clever-cloud.com](https://nexus.clever-cloud.com).
50
+ * Our PGP key is required to trust the repository.
49
51
  * If you want access to the beta channel, you can use this in your `sources.list`:
50
52
 
51
53
  ```sh
52
- echo "deb https://dl.bintray.com/clevercloud/deb unstable beta" | tee -a /etc/apt/sources.list
54
+ echo "deb [signed-by=/usr/share/keyrings/cc-nexus-deb.gpg] https://nexus.clever-cloud.com/repository/deb-beta beta main" | tee -a /etc/apt/sources.list
53
55
  ```
54
56
 
55
57
  #### CentOS/Fedora (.rpm)
@@ -58,22 +60,23 @@ echo "deb https://dl.bintray.com/clevercloud/deb unstable beta" | tee -a /etc/ap
58
60
 
59
61
  ##### Warning
60
62
 
61
- Bintray is ending on May 1st 2021, we will migrate hosting as soon as possible. Please refer to the dedicated [issue](https://github.com/CleverCloud/clever-tools/issues/454) to track the migration.
63
+ We recently moved from Bintray to a self-hosted Nexus repository available at [https://nexus.clever-cloud.com](https://nexus.clever-cloud.com).
64
+ If you were using Bintray to install our `.rpm` packages, you will need to remove the old `/etc/yum.repos.d/bintray-clevercloud-rpm.repo` before going further.
62
65
 
63
66
  ---
64
67
 
65
68
  If you are using a GNU/Linux distribution that uses `.rpm` packages like CentOS or Fedora, you can run:
66
69
 
67
70
  ```sh
68
- curl https://bintray.com/clevercloud/rpm/rpm > /etc/yum.repos.d/bintray-clevercloud-rpm.repo
69
- echo "exclude=*beta*" >> /etc/yum.repos.d/bintray-clevercloud-rpm.repo
71
+ curl -s https://clever-tools.clever-cloud.com/repos/cc-nexus-rpm.repo > /etc/yum.repos.d/cc-nexus-rpm.repo
72
+ yum update
70
73
  yum install clever-tools
71
74
  ```
72
75
 
73
76
  NOTES:
74
77
 
75
- * The `.rpm` packages are hosted on Bintray.
76
- * If you want access to the beta channel, you can omit the second line which contains an exclude option.
78
+ * The `.rpm` packages are hosted on Clever Cloud's public Nexus instance available at [https://nexus.clever-cloud.com](https://nexus.clever-cloud.com).
79
+ * If you want access to the beta channel, you will need to edit `/etc/yum.repos.d/cc-nexus-rpm.repo` and set `enabled=1` for the `[clever-tools-beta]`.
77
80
 
78
81
  #### Arch Linux
79
82
 
@@ -114,11 +117,11 @@ NOTES:
114
117
  * The packages are available on Clever Cloud's Cellar bucket: [clever-tools-latest_linux.tar.gz](https://clever-tools.clever-cloud.com/releases/latest/clever-tools-latest_linux.tar.gz).
115
118
  * You can also retrieve any release (including beta) on this Cellar bucket by replacing `latest` (path and filename) with the version number you need.
116
119
 
117
- ### On MacOS
120
+ ### On macOS
118
121
 
119
122
  #### Using homebrew
120
123
 
121
- If you are using MacOS and you have [homebrew](https://brew.sh) installed, you can run:
124
+ If you are using macOS and you have [homebrew](https://brew.sh) installed, you can run:
122
125
 
123
126
  ```sh
124
127
  brew install CleverCloud/homebrew-tap/clever-tools
@@ -130,7 +133,7 @@ NOTES:
130
133
 
131
134
  #### Using the `.tar.gz` archive
132
135
 
133
- If you are using MacOS but you don't have [homebrew](https://brew.sh) installed, you can download a `.tar.gz` archive and extract the binary in your `PATH`:
136
+ If you are using macOS, but you don't have [homebrew](https://brew.sh) installed, you can download a `.tar.gz` archive and extract the binary in your `PATH`:
134
137
 
135
138
  ```sh
136
139
  curl -O https://clever-tools.clever-cloud.com/releases/latest/clever-tools-latest_macos.tar.gz
@@ -151,24 +154,25 @@ NOTES:
151
154
 
152
155
  ##### Warning
153
156
 
154
- Bintray is ending on May 1st 2021, we will migrate hosting as soon as possible. Please refer to the dedicated [issue](https://github.com/CleverCloud/clever-tools/issues/454) to track the migration.
157
+ We recently moved from Bintray to a self-hosted Nexus repository available at [https://nexus.clever-cloud.com](https://nexus.clever-cloud.com).
158
+ If you were using Bintray to install our `.nupkg` packages, you will need to remove the old source.
155
159
 
156
160
  ---
157
161
 
158
162
  If you are using Windows and you have [chocolatey](https://chocolatey.org) installed, you can run:
159
163
 
160
164
  ```bash
161
- choco sources add -n=clevercloud -s='https://api.bintray.com/nuget/clevercloud/nupkg'
165
+ choco sources add -n=clevercloud -s='https://nexus.clever-cloud.com/repository/nupkg/'
162
166
  choco install clever-tools
163
167
  ```
164
168
 
165
169
  NOTES:
166
170
 
167
- * If you want access to the beta channel, you can use `choco install --pre clever-tools` instead.
171
+ * If you want access to the beta channel, you can use `choco sources add -n=clevercloud -s='https://nexus.clever-cloud.com/repository/nupkg-beta/'` instead.
168
172
 
169
173
  #### Using the `.zip` archive
170
174
 
171
- If you are using Windows but you don't have [chocolatey](https://chocolatey.org) installed, you can download a `.zip` archive and extract the binary in your `PATH`.
175
+ If you are using Windows, but you don't have [chocolatey](https://chocolatey.org) installed, you can download a `.zip` archive and extract the binary in your `PATH`.
172
176
 
173
177
  NOTES:
174
178
 
@@ -194,7 +198,7 @@ COPY --from=clevercloud/clever-tools /bin/clever /usr/local/bin/clever
194
198
 
195
199
  ### Via Nix
196
200
 
197
- If you are using Nix, you will find a Nix derivation on Fretlink's Github repository: https://github.com/fretlink/clever-tools-nix
201
+ If you are using Nix, you will find a Nix derivation on Fretlink's GitHub repository: https://github.com/fretlink/clever-tools-nix
198
202
 
199
203
  ## Enabling autocompletion
200
204
 
@@ -225,7 +229,7 @@ clever login
225
229
  It will open the Web console in your browser and reuse your existing session if you're already logged in.
226
230
 
227
231
  `clever login` tries to open a browser through `xdg-open` on GNU/Linux systems (and in bash for windows).
228
- Make sure you have `xdg-utils` available as well as a default browser set (or you can copy and paste the URL displayed in the console.
232
+ Make sure you have `xdg-utils` available as well as a default browser set, or you can copy and paste the URL displayed in the console.
229
233
 
230
234
  ### Create an application
231
235
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clever-tools",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "description": "Command Line Interface for Clever Cloud.",
5
5
  "main": "bin/clever.js",
6
6
  "keywords": [
@@ -36,7 +36,7 @@
36
36
  "lodash": "^4.17.21",
37
37
  "mkdirp": "^1.0.4",
38
38
  "moment": "^2.29.1",
39
- "opn": "^6.0.0",
39
+ "open": "^8.4.0",
40
40
  "slugify": "^1.5.3",
41
41
  "string-length": "^4.0.2",
42
42
  "superagent": "^6.1.0",
@@ -2,7 +2,7 @@
2
2
 
3
3
  const AppConfig = require('../models/app_configuration.js');
4
4
  const Logger = require('../logger.js');
5
- const openPage = require('opn');
5
+ const openPage = require('open');
6
6
 
7
7
  async function openConsole (params) {
8
8
  const { alias } = params.options;
@@ -6,7 +6,7 @@ const util = require('util');
6
6
  const delay = util.promisify(setTimeout);
7
7
 
8
8
  const colors = require('colors/safe');
9
- const open = require('opn');
9
+ const open = require('open');
10
10
  const superagent = require('superagent');
11
11
 
12
12
  const Logger = require('../logger.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const openPage = require('opn');
3
+ const openPage = require('open');
4
4
 
5
5
  const AppConfig = require('../models/app_configuration.js');
6
6
  const Domain = require('../models/domain.js');