module SauceWhisk
def self.validate_dc dc
def self.validate_dc dc dc = :eu_vdc if dc.to_s.upcase.to_sym == :EU dc = :us_west if dc.to_s.upcase.to_sym == :US dc = :us_west if dc.to_s.upcase.to_sym == :US_VDC ucdc = dc.to_s.upcase.to_sym if ![:EU_VDC, :US_EAST, :US_WEST, :APAC].include? ucdc raise ::ArgumentError.new("Invalid data center requested: #{ucdc}. Value values are :EU_VDC, :US_EAST and :US_WEST.") end @data_center = ucdc end