Class: Atom::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/atom/configuration.rb

Class Method Summary collapse

Class Method Details

.auth_hmac_enabled?Boolean

Returns:

  • (Boolean)


10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/atom/configuration.rb', line 10

def self.auth_hmac_enabled?
  unless defined?(@auth_hmac_enabled)
    begin
      gem 'auth-hmac'
      require 'auth-hmac'
      @auth_hmac_enabled = true
    rescue Exception
      @auth_hmac_enabled = false
    end
  else
    @auth_hmac_enabled
  end
end