brightbox-cli 2.11.2 → 2.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +3 -3
- data/lib/brightbox-cli/commands/token.rb +16 -1
- data/lib/brightbox-cli/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: e9bbe3528cad8d74bcbd00e7ce097a1a1c4b83e389514b8da47d071952a240dc
|
4
|
+
data.tar.gz: 8b63cb7b7bbbff2215bd1b21d717941a3191855e1d5bcd4bf3d3d72afd5db3a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9565e3c7f2981014f0a6497049d9d007e01498475ef2146aaf9d1d57a66e8d4e2a0a0e4fd0eb1d907f067b7031443f9b043edef40ff490e5e4fc67d842dc49f6
|
7
|
+
data.tar.gz: bb32fc9808ae86643035a1c8d4ebd5a8026d6f3027a65b859097c819feffd6e33681126f513b5c9c3a5cb48a8504d0eed030a8c34e540be352d57a5bab755cfd
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
### v2.12.0 / 2020-01-28
|
2
|
+
|
3
|
+
[Full Changelog](https://github.com/brightbox/brightbox-cli/compare/v2.11.2...v2.12.0)
|
4
|
+
|
5
|
+
Enhancements:
|
6
|
+
|
7
|
+
* Adds `token create` to always attempt to reauthenticate and display a token.
|
8
|
+
|
1
9
|
### v2.11.2 / 2020-01-07
|
2
10
|
|
3
11
|
[Full Changelog](https://github.com/brightbox/brightbox-cli/compare/v2.11.1...v2.11.2)
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
brightbox-cli (2.
|
4
|
+
brightbox-cli (2.12.0)
|
5
5
|
dry-inflector (< 0.2)
|
6
6
|
fog-brightbox (>= 0.16.0, < 1.0)
|
7
7
|
fog-core (< 2.0)
|
@@ -22,7 +22,7 @@ GEM
|
|
22
22
|
safe_yaml (~> 1.0.0)
|
23
23
|
diff-lcs (1.2.5)
|
24
24
|
dry-inflector (0.1.2)
|
25
|
-
excon (0.
|
25
|
+
excon (0.72.0)
|
26
26
|
fog-brightbox (0.16.1)
|
27
27
|
dry-inflector
|
28
28
|
fog-core
|
@@ -82,4 +82,4 @@ DEPENDENCIES
|
|
82
82
|
webmock
|
83
83
|
|
84
84
|
BUNDLED WITH
|
85
|
-
1.
|
85
|
+
1.17.2
|
@@ -10,10 +10,25 @@ module Brightbox
|
|
10
10
|
c.default_value "text"
|
11
11
|
c.flag [:format]
|
12
12
|
|
13
|
-
c.action do |
|
13
|
+
c.action do |_, options, _|
|
14
|
+
token = Token.show(Brightbox.config, options)
|
15
|
+
$stdout.puts token.format(options[:format] || "text")
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
cmd.desc "Create new OAuth2 Bearer token"
|
20
|
+
cmd.command [:create] do |c|
|
21
|
+
c.desc "Either 'text', 'token', 'json' or 'curl'"
|
22
|
+
c.arg_name "format"
|
23
|
+
c.default_value "text"
|
24
|
+
c.flag [:format]
|
25
|
+
|
26
|
+
c.action do |_, options, _|
|
27
|
+
config.reauthenticate
|
14
28
|
token = Token.show(Brightbox.config, options)
|
15
29
|
$stdout.puts token.format(options[:format])
|
16
30
|
end
|
17
31
|
end
|
32
|
+
|
18
33
|
end
|
19
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brightbox-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Leach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-brightbox
|