brightbox-cli 2.1.1 → 2.1.2

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
  SHA1:
3
- metadata.gz: 176ebb88bcc31897e46c6abc3b1b1a5ef81a496d
4
- data.tar.gz: 78144a905c334685e34056d9b0b9fb6a364932b5
3
+ metadata.gz: 9e414299f5428a8989b0b711f4085732e883b739
4
+ data.tar.gz: 372b1ddf4b22fe727ded09adb9e518307f803079
5
5
  SHA512:
6
- metadata.gz: 52366cada8dbb8e12c2b58cf5d0b570f92232de7e676c79a02be7541a6b21a2bb05a68c083356420c0ef4cd5bfcc038463c390f676d07fa4ff1aa200095069af
7
- data.tar.gz: 80705e28b4a4a423abb9ba7ca2007da54cd96b50afff65f81f8fa7f20504f78c9e227d20923f1b54f6e9655b6c17ea4236fe3b54af2ff7a315196dc180ff8409
6
+ metadata.gz: 2d55325e1321e941667a802991494ba2f9e0c3946caa82a89f4decaf54d8395d9c8b516208f2ef2b1f9a786d383c489d9a2acac3cfe1f5f094243a85051b223d
7
+ data.tar.gz: 369a121630bde46a3fcd2966c4b2d3d6a22a74aa7d19b5ccb81818dbdb9468a99e3042ef8e80ad45142e3021dd1645b8642ecfa5226316f4d0d30b05f070de3e
@@ -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)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brightbox-cli (2.1.1)
4
+ brightbox-cli (2.1.2)
5
5
  fog-brightbox (>= 0.8.0)
6
6
  gli (~> 2.12.0)
7
7
  highline (~> 1.6.0)
@@ -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
- returned = $config.reauthenticate
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
- returned
101
+ $config.debug_tokens
102
+ exit(222)
102
103
  rescue Brightbox::Api::ApiError
103
104
  error "Unable to authenticate with supplied details"
104
- false
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
- false # GLI will exit
125
+ $config.debug_tokens
126
+ exit(1)
125
127
  end
126
128
  end
127
129
  end
@@ -1,3 +1,3 @@
1
1
  module Brightbox
2
- VERSION = "2.1.1" unless defined?(Brightbox::VERSION)
2
+ VERSION = "2.1.2" 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.1.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-16 00:00:00.000000000 Z
11
+ date: 2015-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-brightbox