brightbox-cli 2.1.1 → 2.1.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/lib/brightbox-cli/gli_global_hooks.rb +8 -6
- data/lib/brightbox-cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e414299f5428a8989b0b711f4085732e883b739
|
|
4
|
+
data.tar.gz: 372b1ddf4b22fe727ded09adb9e518307f803079
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d55325e1321e941667a802991494ba2f9e0c3946caa82a89f4decaf54d8395d9c8b516208f2ef2b1f9a786d383c489d9a2acac3cfe1f5f094243a85051b223d
|
|
7
|
+
data.tar.gz: 369a121630bde46a3fcd2966c4b2d3d6a22a74aa7d19b5ccb81818dbdb9468a99e3042ef8e80ad45142e3021dd1645b8642ecfa5226316f4d0d30b05f070de3e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
### v2.1.2 / 2015-07-18
|
|
2
|
+
|
|
3
|
+
[Full Changelog](https://github.com/brightbox/brightbox-cli/compare/v2.1.1...v2.1.2)
|
|
4
|
+
|
|
5
|
+
Bug fixes:
|
|
6
|
+
|
|
7
|
+
* Return non 0 exit codes when CLI has an error
|
|
8
|
+
|
|
1
9
|
### v2.1.1 / 2015-07-17
|
|
2
10
|
|
|
3
11
|
[Full Changelog](https://github.com/brightbox/brightbox-cli/compare/v2.1.0...v2.1.1)
|
data/Gemfile.lock
CHANGED
|
@@ -95,22 +95,23 @@ module Brightbox
|
|
|
95
95
|
if e.is_a?(Excon::Errors::Unauthorized)
|
|
96
96
|
begin
|
|
97
97
|
debug "Refused access token: #{$config.access_token}"
|
|
98
|
-
|
|
98
|
+
$config.reauthenticate
|
|
99
99
|
# FIXME: Curious output from info
|
|
100
100
|
info "Your API credentials have been updated, please re-run your command."
|
|
101
|
-
|
|
101
|
+
$config.debug_tokens
|
|
102
|
+
exit(222)
|
|
102
103
|
rescue Brightbox::Api::ApiError
|
|
103
104
|
error "Unable to authenticate with supplied details"
|
|
104
|
-
|
|
105
|
+
$config.debug_tokens
|
|
106
|
+
exit(111)
|
|
105
107
|
rescue Exception => e
|
|
106
108
|
if ENV["DEBUG"]
|
|
107
109
|
debug e
|
|
108
110
|
debug e.class.to_s
|
|
109
111
|
debug e.backtrace.join("\n")
|
|
110
112
|
end
|
|
111
|
-
false
|
|
112
|
-
ensure
|
|
113
113
|
$config.debug_tokens
|
|
114
|
+
exit(1)
|
|
114
115
|
end
|
|
115
116
|
else
|
|
116
117
|
# Handle the rest
|
|
@@ -121,7 +122,8 @@ module Brightbox
|
|
|
121
122
|
debug e.class.to_s
|
|
122
123
|
debug e.backtrace.join("\n")
|
|
123
124
|
end
|
|
124
|
-
|
|
125
|
+
$config.debug_tokens
|
|
126
|
+
exit(1)
|
|
125
127
|
end
|
|
126
128
|
end
|
|
127
129
|
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.1.
|
|
4
|
+
version: 2.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Leach
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-07-
|
|
11
|
+
date: 2015-07-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fog-brightbox
|