Skip to content

Commit

Permalink
Merge pull request #4018 from voxik/brightbox-1-compat
Browse files Browse the repository at this point in the history
Fix compatibility with fog-brightbox 1.0.0+.
  • Loading branch information
tokengeek committed Nov 8, 2018
2 parents 676ccd8 + a15b075 commit adc3d36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/fog/bin/brightbox.rb
Expand Up @@ -3,9 +3,9 @@ class << self
def class_for(key)
case key
when :compute
Fog::Compute::Brightbox
Fog::Brightbox::Compute
when :storage
Fog::Storage::Brightbox
Fog::Brightbox::Storage
else
raise ArgumentError, "Unsupported #{self} service: #{key}"
end
Expand Down
4 changes: 2 additions & 2 deletions spec/fog/bin/brightbox_spec.rb
Expand Up @@ -17,13 +17,13 @@
describe "#class_for" do
describe "when requesting compute service" do
it "returns correct class" do
assert_equal Fog::Compute::Brightbox, Brightbox.class_for(:compute)
assert_equal Fog::Brightbox::Compute, Brightbox.class_for(:compute)
end
end

describe "when requesting storage service" do
it "returns correct class" do
assert_equal Fog::Storage::Brightbox, Brightbox.class_for(:storage)
assert_equal Fog::Brightbox::Storage, Brightbox.class_for(:storage)
end
end
end
Expand Down

0 comments on commit adc3d36

Please sign in to comment.