Class: Cloud::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud/settings.rb

Class Method Summary (collapse)

Class Method Details

+ (Boolean) cloud_enabled?

Returns:

  • (Boolean)


7
8
9
10
11
# File 'lib/cloud/settings.rb', line 7

def cloud_enabled?
  retval = !cloud_settings.empty? && !cloud_settings[:disabled]
  # puts "CLOUD SETTINGS NOT TESTABLE YET in #{ENV['RACK_ENV']}" if retval
  retval
end

+ (Object) cloud_settings



13
14
15
# File 'lib/cloud/settings.rb', line 13

def cloud_settings
  return @cloud ||= init_cloud_settings
end