From dde9042ae032e74d6570fd1eedfc962f90a6af56 Mon Sep 17 00:00:00 2001 From: Paul Thornthwaite Date: Tue, 22 Apr 2014 13:50:58 +0100 Subject: [PATCH] [Brightbox] Update Brightbox gem to add storage --- fog.gemspec | 2 +- lib/fog/bin/brightbox.rb | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fog.gemspec b/fog.gemspec index 25907219f..8f5268168 100644 --- a/fog.gemspec +++ b/fog.gemspec @@ -54,7 +54,7 @@ Gem::Specification.new do |s| s.add_dependency('ipaddress', '~>0.5') # Modular providers - s.add_dependency("fog-brightbox") + s.add_dependency("fog-brightbox", "~> 0.4") s.add_dependency("fog-softlayer") s.add_dependency("fog-sakuracloud", ">= 0.0.4") s.add_dependency("fog-radosgw", ">=0.0.2") diff --git a/lib/fog/bin/brightbox.rb b/lib/fog/bin/brightbox.rb index c3c087e1e..72b7f2f0e 100644 --- a/lib/fog/bin/brightbox.rb +++ b/lib/fog/bin/brightbox.rb @@ -4,8 +4,10 @@ class Brightbox < Fog::Bin case key when :compute Fog::Compute::Brightbox + when :storage + Fog::Storage::Brightbox else - raise ArgumentError, "Unrecognized service: #{key}" + raise ArgumentError, "Unsupported #{self} service: #{key}" end end