Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explicit bundler:config step to support 2.1+ #122

Merged
merged 3 commits into from
Jul 11, 2020

Commits on Jun 28, 2020

  1. Add explicit bundler:config step to support 2.1+

    Starting with Bundler 2.1, the `--path`, `--without`, and `--deployment`
    options are deprecated. In other words you are no longer supposed to
    specify these when running `bundle install`.
    
    Instead, Bundler wants you to set these options _externally_ from the
    install command. That way all subsequent invocations of bundler can use
    the same external configuration without you having to remember which
    flags to use each time.
    
    There are two ways to specify this external configuration: providing
    environment variables, or running `bundle config`. This commit
    implements the latter.
    
    To summarize, prior to running `bundle check`, `bundle install`, or
    `bundle clean`, Capistrano will now run a new `bundler:config` task.
    This task executes the following command as many times as needed:
    
    ```
    bundle config --local KEY VALUE
    ```
    
    Each execution sets the external Bundler configuration KEY to VALUE.
    
    The following Capistrano variables are automatically consulted to get
    theses KEYs and VALUEs:
    
    - :bundle_gemfile
    - :bundle_path
    - :bundle_without
    
    This commit also introduces a new variable:
    
    - bundle_config
    
    It is a Hash that can contain any arbitrary KEY and VALUE pairs to send
    to `bundle config`. By default it has a single entry:
    
    ```
    set :bundle_config, { deployment: true }
    ```
    
    Finally, this commit removes `--deployment` option from the default
    value of `:bundle_flags`, since that flag is deprecated. It has been
    replaced by the default `:bundle_config` as mentioned above.
    mattbrictson committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    89ade7c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    75593e5 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2020

  1. Configuration menu
    Copy the full SHA
    553dfd4 View commit details
    Browse the repository at this point in the history