Skip to content
This repository has been archived by the owner on Mar 21, 2018. It is now read-only.

Run commands in clean bundler env #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Mar 26, 2013

  1. Ensure Bundler has a clean env before exec_cmd'ing

    Execute all Git commands in a `Bundler.clean_env` to ensure we're
    using the right versions of everything. Fixes an issue where previously
    a `rain` deploy could not be combined with any "Git hook"-creating
    plugins, such as `git-tracker`, or else the commit would fail due to
    the improper Ruby being used.
    
    Thanks to @stevenharman and @alindeman for showing us this
    awesome little Bundler trick, which helps us mitigate this issue and any
    future problems that may be encountered in the course of Rain's use with
    other Git plugins.
    tubbo committed Mar 26, 2013
    1 Configuration menu
    Copy the full SHA
    ea1e881 View commit details
    Browse the repository at this point in the history
  2. clean_exec would not continue running commands after the first one.

    We're just wrapping the existing execution command in a
    with_clean_env to mitigate this issue.
    tubbo committed Mar 26, 2013
    Configuration menu
    Copy the full SHA
    9e3b884 View commit details
    Browse the repository at this point in the history