Sha256: 921d669390abb6a864facf137b4e79257a6038d3866602c8d8eabcabef8a86d7

Contents?: true

Size: 448 Bytes

Versions: 3

Compression:

Stored size: 448 Bytes

Contents

require "opensesame"

app_id  = ENV['GITHUB_APP_ID']
secret  = ENV['GITHUB_SECRET']

if app_id.nil?
  puts "Setting app_id to dummy string"
  app_id = 'dummy_app_id'
end

if secret.nil?
  puts "Setting secret to dummy string"
  secret = 'dummy_secret'
end

OpenSesame.configure do |config|
  config.enable       true
  config.organization 'challengepost'
  config.mounted_at   '/opensesame'
  config.github app_id, secret
  config.debug = true
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
opensesame-0.4.0 spec/dummy/config/initializers/opensesame.rb
opensesame-0.3.0 spec/dummy/config/initializers/opensesame.rb
opensesame-0.2.0 spec/dummy/config/initializers/opensesame.rb