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,6 +5,8 @@ class Bluebox < Fog::Bin
|
|||
case key
|
||||
when :blocks, :compute
|
||||
Fog::Bluebox::Compute
|
||||
when :dns
|
||||
Fog::Bluebox::DNS
|
||||
else
|
||||
raise ArgumentError, "Unsupported #{self} service: #{key}"
|
||||
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
|
||||
|
|
|
@ -6,6 +6,7 @@ module Fog
|
|||
extend Fog::Provider
|
||||
|
||||
service(:compute, 'compute/bluebox')
|
||||
service(:dns, 'dns/bluebox')
|
||||
|
||||
def self.new(attributes = {})
|
||||
location = caller.first
|
||||
|
|
Loading…
Reference in a new issue