Skip to content
This repository was archived by the owner on Mar 21, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ PATH
specs:
rain (1.0.8)
capistrano
rails (~> 3.2.8)
rails
thor

GEM
Expand Down
6 changes: 5 additions & 1 deletion lib/rain/git_tools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ def push_tag(tag)
# what is/what would have been executed onto stdout.
def run_cmd(cmd)
puts "executing... #{cmd}"
%x(#{cmd}) unless ENV['RAILS_ENV'] == "test"
Bundler.with_clean_env { %x(#{cmd}) } unless testing?
end

def testing?
ENV['RAILS_ENV'] == "test"
end

# Full path of the versions.yml file in the Rails app.
Expand Down