Sha256: c4cfca0a0d690496e7556670efe583946f5524490083bc6358a99c8cdec5be59

Contents?: true

Size: 429 Bytes

Versions: 3

Compression:

Stored size: 429 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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
opensesame-0.1.2 spec/dummy/config/initializers/opensesame.rb
opensesame-0.1.1 spec/dummy/config/initializers/opensesame.rb
opensesame-0.1.0 spec/dummy/config/initializers/opensesame.rb