mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Added dns support to bluebox bin scripts
This commit is contained in:
parent
181a7849dd
commit
356b11af38
2 changed files with 7 additions and 2 deletions
|
@ -5,7 +5,9 @@ class Bluebox < Fog::Bin
|
||||||
case key
|
case key
|
||||||
when :blocks, :compute
|
when :blocks, :compute
|
||||||
Fog::Bluebox::Compute
|
Fog::Bluebox::Compute
|
||||||
else
|
when :dns
|
||||||
|
Fog::Bluebox::DNS
|
||||||
|
else
|
||||||
raise ArgumentError, "Unsupported #{self} service: #{key}"
|
raise ArgumentError, "Unsupported #{self} service: #{key}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -21,6 +23,8 @@ class Bluebox < Fog::Bin
|
||||||
Fog::Compute.new(:provider => 'Bluebox')
|
Fog::Compute.new(:provider => 'Bluebox')
|
||||||
when :compute
|
when :compute
|
||||||
Fog::Compute.new(:provider => 'Bluebox')
|
Fog::Compute.new(:provider => 'Bluebox')
|
||||||
|
when :dns
|
||||||
|
Fog::DNS.new(:provider => 'Bluebox')
|
||||||
else
|
else
|
||||||
raise ArgumentError, "Unrecognized service: #{service}"
|
raise ArgumentError, "Unrecognized service: #{service}"
|
||||||
end
|
end
|
||||||
|
@ -29,7 +33,7 @@ class Bluebox < Fog::Bin
|
||||||
end
|
end
|
||||||
|
|
||||||
def services
|
def services
|
||||||
[:compute]
|
[:compute, :dns]
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,6 +6,7 @@ module Fog
|
||||||
extend Fog::Provider
|
extend Fog::Provider
|
||||||
|
|
||||||
service(:compute, 'compute/bluebox')
|
service(:compute, 'compute/bluebox')
|
||||||
|
service(:dns, 'dns/bluebox')
|
||||||
|
|
||||||
def self.new(attributes = {})
|
def self.new(attributes = {})
|
||||||
location = caller.first
|
location = caller.first
|
||||||
|
|
Loading…
Reference in a new issue