Merge branch 'ember-cli' of github.com:travis-ci/travis-web into ember-cli
This commit is contained in:
commit
3dd7b18e26
16
app/initializers/charm.coffee
Normal file
16
app/initializers/charm.coffee
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
`import config from 'travis/config/environment'`
|
||||||
|
|
||||||
|
initialize = (container, app) ->
|
||||||
|
if config.charmKey
|
||||||
|
window.__CHARM =
|
||||||
|
key: config.charmKey
|
||||||
|
url: "https://charmscout.herokuapp.com/feedback"
|
||||||
|
|
||||||
|
$('head').append $('<script src="https://charmscout.herokuapp.com/charmeur.js?v=2" async defer></script>')
|
||||||
|
|
||||||
|
Initializer =
|
||||||
|
name: 'charm'
|
||||||
|
initialize: initialize
|
||||||
|
|
||||||
|
`export {initialize}`
|
||||||
|
`export default Initializer`
|
|
@ -189,6 +189,7 @@ class Travis::Web::App
|
||||||
|
|
||||||
config['codeClimate'] = options[:code_climate] if options[:code_climate]
|
config['codeClimate'] = options[:code_climate] if options[:code_climate]
|
||||||
config['codeClimateUrl'] = options[:code_climate_url] if options[:code_climate_url]
|
config['codeClimateUrl'] = options[:code_climate_url] if options[:code_climate_url]
|
||||||
|
config['charmKey'] = options[:charm_key] if options[:charm_key]
|
||||||
|
|
||||||
config['endpoints'] = {
|
config['endpoints'] = {
|
||||||
'sshKey' => options[:ssh_key_enabled],
|
'sshKey' => options[:ssh_key_enabled],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user