hipchat
hipchat copied to clipboard
Use the same yaml file to load access token and room name.
Hi,
Is it possible to use yaml config to set access token? I don't like to save access token in the repository.
:thumbsup: I currently do similar, having it baked in would be better.
Here is how I do it in deploy.rb:
set :hipchat_token, get_hipchat_token
def get_hipchat_token
config_yaml = File.expand_path('../../config/hipchat.yml', __FILE__)
ENV['HIPCHAT_TOKEN'] || YAML.load(File.read(config_yaml))['development']['token']
end