From 356b11af382ad2664b84296345f1b25ba2303e5a Mon Sep 17 00:00:00 2001 From: ggoodale Date: Wed, 16 Feb 2011 22:43:38 -0800 Subject: [PATCH] Added dns support to bluebox bin scripts --- lib/fog/bin/bluebox.rb | 8 ++++++-- lib/fog/providers/bluebox.rb | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/fog/bin/bluebox.rb b/lib/fog/bin/bluebox.rb index 6590e9dc4..b25caccc5 100644 --- a/lib/fog/bin/bluebox.rb +++ b/lib/fog/bin/bluebox.rb @@ -5,7 +5,9 @@ class Bluebox < Fog::Bin case key when :blocks, :compute Fog::Bluebox::Compute - else + when :dns + Fog::Bluebox::DNS + else raise ArgumentError, "Unsupported #{self} service: #{key}" end end @@ -21,6 +23,8 @@ class Bluebox < Fog::Bin Fog::Compute.new(:provider => 'Bluebox') when :compute Fog::Compute.new(:provider => 'Bluebox') + when :dns + Fog::DNS.new(:provider => 'Bluebox') else raise ArgumentError, "Unrecognized service: #{service}" end @@ -29,7 +33,7 @@ class Bluebox < Fog::Bin end def services - [:compute] + [:compute, :dns] end end diff --git a/lib/fog/providers/bluebox.rb b/lib/fog/providers/bluebox.rb index 5b0dc9942..aad472de7 100644 --- a/lib/fog/providers/bluebox.rb +++ b/lib/fog/providers/bluebox.rb @@ -6,6 +6,7 @@ module Fog extend Fog::Provider service(:compute, 'compute/bluebox') + service(:dns, 'dns/bluebox') def self.new(attributes = {}) location = caller.first