Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Add a command line parameter to specify additional loadable Bundler group #202

Closed
wants to merge 1 commit into from
Closed

Add a command line parameter to specify additional loadable Bundler group #202

wants to merge 1 commit into from

Conversation

maxvt
Copy link

@maxvt maxvt commented Oct 30, 2016

In a Lita environment with many plugins loaded in production, we found it useful to be able to specify a small subset of plugins for development using the same Gemfile, as in the following example. This lets developers focus on particular plugins or combinations of them, while not requiring the rest of plugins to be loaded and with minimal changes between developer and production environments.

For the production environment, we need to be able to tell Lita to load gems from a non-default Bundler group, which this change enables.

source 'https://rubygems.org'

# Core bot and adapter
gem 'lita'
gem 'lita-slack'

# Extensions
gem 'lita-confirmation', git: 'git@github.com:maxvt/lita-confirmation'

# Move the plugins/handlers you would like to work on from the production group here.
# It is often very convenient to clone them under the repo and use the local
# version, like this:
# gem 'lita-my-plugin', path: 'lita-my-plugin'

# We enable all of these handlers in production.
# For development, pick and choose the ones you want--
# many will require configuration keys and some might have dependencies
# that will require manual setup
group :production do
  gem 'lita-github'
  gem 'lita-jira'
  gem 'lita-wikipedia'
  ...
end

group :development do
  gem 'foreman'
  gem 'pry'
end

@maxvt
Copy link
Author

maxvt commented Aug 13, 2018

Closing due to lack of response from upstream.

@maxvt maxvt closed this Aug 13, 2018
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.

1 participant