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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f37c9c63622674d0abcab2e4322d1e087a87ca656f0893064e9116adf443d686
4
- data.tar.gz: 01d93f26714e55f2b49b97fe9f89c027789431b4d51534835318ca33f28f4305
3
+ metadata.gz: e9bbe3528cad8d74bcbd00e7ce097a1a1c4b83e389514b8da47d071952a240dc
4
+ data.tar.gz: 8b63cb7b7bbbff2215bd1b21d717941a3191855e1d5bcd4bf3d3d72afd5db3a6
5
5
  SHA512:
6
- metadata.gz: 7905407733ca6343b596ff0c51ea9edce92f850d4bed7c86a1dcf214f8ad6098c19a861df69d642ecb568ffdaf72b764d525596e5d5cae7ee6b8a6397daa2f4d
7
- data.tar.gz: bec68ef541a8d3a2a2adb7951abeddae676d98b4c3f3da15b1506a7aeab791cfa82eda052901a7d811203d72559f3ec5ffa0c3f05a3aca220476c7d85d9f8b31
6
+ metadata.gz: 9565e3c7f2981014f0a6497049d9d007e01498475ef2146aaf9d1d57a66e8d4e2a0a0e4fd0eb1d907f067b7031443f9b043edef40ff490e5e4fc67d842dc49f6
7
+ data.tar.gz: bb32fc9808ae86643035a1c8d4ebd5a8026d6f3027a65b859097c819feffd6e33681126f513b5c9c3a5cb48a8504d0eed030a8c34e540be352d57a5bab755cfd
@@ -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)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brightbox-cli (2.11.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.71.1)
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.16.6
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 |global_options, options, args|
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
@@ -1,3 +1,3 @@
1
1
  module Brightbox
2
- VERSION = "2.11.2" unless defined?(Brightbox::VERSION)
2
+ VERSION = "2.12.0" unless defined?(Brightbox::VERSION)
3
3
  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.11.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: 1970-01-01 00:00:00.000000000 Z
11
+ date: 2020-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-brightbox