Skip to content
This repository was archived by the owner on Aug 15, 2022. It is now read-only.

Conversation

@mattskone
Copy link
Contributor

Motivation/User Story

As a DevOps engineer for a Slack bot integration hosting service, I want to be able to specify the config file path so that the configuration of a running instance of python-rtmbot is decoupled from the location of the source code.

This will allow us to run multiple instances of python-rtmbot from the same code base, but with a different configuration (e.g., a different Slack token) for each. Then we can take all the time we save by deploying/maintaining just one copy of the code and have a bubble party.

What it does

This PR allows a user to specify the location and name of a config file with an optional command-line argument. The current behavior is still available, which is to say, if the argument is not provided, the rtmbot.conf file in the project root is used.

Usage

Use the -c or --config command line option followed by the full path (including file name) of the desired config file:

$ python ./rtmbot.py -c /path/to/config/my_config.conf

rawdigits added a commit that referenced this pull request Jun 20, 2015
Specify location and name of config file
@rawdigits rawdigits merged commit ab8921c into slack-samples:master Jun 20, 2015
@rawdigits
Copy link
Contributor

This seems like a good addition! Thanks for adding a config file arg. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants