module Cloud class Settings @cloud = nil class << self def cloud_enabled? retval = !cloud_settings.empty? && !cloud_settings[:disabled] # puts "CLOUD SETTINGS NOT TESTABLE YET in #{ENV['RACK_ENV']}" if retval retval end def cloud_settings return @cloud ||= init_cloud_settings end private def init_cloud_settings cloud_settings_file = ENV['CLOUD_SETTINGS'] || './config/hws_cloud_settings.conf' # is there one? return OpenStruct.new({:disabled => true}) if !File.exist?(cloud_settings_file) # get it OpenStruct.new(YAML.load_file(cloud_settings_file))[ENV['RACK_ENV']] end end end end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 16024 | Doug Scheirer | Some cloud spec forking, got the mock_raymond to spin up in cloud testing, split normal vs cloud spec output | ||
#2 | 15875 | Doug Scheirer | 'Fixes' for broken tests | ||
#1 | 15872 | Doug Scheirer |
More tweaks for Cloud environment, still have HVE_... nil issues in client test env |