Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7ff1c1
commit 3a13d5a
Showing
10 changed files
with
25 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,5 @@ | ||
module Fog | ||
module Account | ||
extend Fog::ServicesMixin | ||
|
||
def self.new(orig_attributes) | ||
attributes = orig_attributes.dup | ||
provider = attributes.delete(:provider).to_s.downcase.to_sym | ||
|
||
if provider == :stormondemand | ||
require "fog/account/storm_on_demand" | ||
Fog::Account::StormOnDemand.new(attributes) | ||
else | ||
super(orig_attributes) | ||
end | ||
end | ||
|
||
def self.providers | ||
Fog.services[:account] || [] | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,5 @@ | ||
module Fog | ||
module Billing | ||
extend Fog::ServicesMixin | ||
|
||
def self.new(orig_attributes) | ||
attributes = orig_attributes.dup | ||
provider = attributes.delete(:provider).to_s.downcase.to_sym | ||
if provider == :stormondemand | ||
require "fog/billing/storm_on_demand" | ||
Fog::Billing::StormOnDemand.new(attributes) | ||
else | ||
super(orig_attributes) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,5 @@ | ||
module Fog | ||
module Monitoring | ||
extend Fog::ServicesMixin | ||
|
||
def self.new(orig_attributes) | ||
attributes = orig_attributes.dup | ||
provider = attributes.delete(:provider).to_s.downcase.to_sym | ||
if provider == :stormondemand | ||
require "fog/monitoring/storm_on_demand" | ||
Fog::Monitoring::StormOnDemand.new(attributes) | ||
else | ||
super(orig_attributes) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
module Fog | ||
module Network | ||
extend Fog::ServicesMixin | ||
|
||
def self.new(orig_attributes) | ||
attributes = orig_attributes.dup # Prevent delete from having side effects | ||
provider = attributes.delete(:provider).to_s.downcase.to_sym | ||
|
||
if provider == :stormondemand | ||
require "fog/network/storm_on_demand" | ||
return Fog::Network::StormOnDemand.new(attributes) | ||
else | ||
super(orig_attributes) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
module Fog | ||
module Support | ||
extend Fog::ServicesMixin | ||
|
||
def self.new(orig_attributes) | ||
attributes = orig_attributes.dup | ||
provider = attributes.delete(:provider).to_s.downcase.to_sym | ||
|
||
if provider == :stormondemand | ||
require "fog/support/storm_on_demand" | ||
Fog::Support::StormOnDemand.new(attributes) | ||
else | ||
super(orig_attributes) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
module Fog | ||
module VPN | ||
extend Fog::ServicesMixin | ||
|
||
def self.new(orig_attributes) | ||
attributes = orig_attributes.dup | ||
provider = attributes.delete(:provider).to_s.downcase.to_sym | ||
|
||
if provider == :stormondemand | ||
require "fog/vpn/storm_on_demand" | ||
Fog::VPN::StormOnDemand.new(attributes) | ||
else | ||
super(orig_attributes) | ||
end | ||
end | ||
end | ||
end |