rackspace-monitoring 0.2.10 → 0.2.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/rackspace-monitoring.rb +13 -4
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.10
1
+ 0.2.11
@@ -67,15 +67,24 @@ module Fog
67
67
  @connection_options = options[:connection_options] || {}
68
68
 
69
69
  if options.has_key?("raise_errors")
70
- @raise_errors = options[:raise_errors]
70
+ @raise_errors = options[:raise_errors]
71
71
  else
72
- @raise_errors = true
72
+ @raise_errors = true
73
+ end
74
+
75
+ begin
76
+ authenticate
77
+ rescue Exception => error
78
+ raise_error(error)
73
79
  end
74
80
 
75
- authenticate
76
81
  @persistent = options[:persistent] || false
77
82
 
78
- @connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options)
83
+ begin
84
+ @connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options)
85
+ rescue Exception => error
86
+ raise_error(error)
87
+ end
79
88
  end
80
89
 
81
90
  def reload
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rackspace-monitoring
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 10
10
- version: 0.2.10
9
+ - 11
10
+ version: 0.2.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dan Di Spaltro