lib/kapost/bootstrapper.rb in kapost-bootstrapper-0.1.1 vs lib/kapost/bootstrapper.rb in kapost-bootstrapper-0.1.3
- old
+ new
@@ -32,21 +32,21 @@
success
end
def check_bundler
check "bundler" do
- sh "gem install bundler --conservative", verbose: false
+ sh "gem install bundler --conservative &>/dev/null", verbose: false
end
end
def bundle
check "gems" do
- sh "bundle check || bundle install", verbose: false
+ sh "bundle check &>/dev/null || bundle install &>/dev/null", verbose: false
end
end
def installed?(command)
- _, status = cli.capture2e "type #{command}"
+ _, status = cli.capture2e "bash -c 'type #{command}'"
status.success?
end
def right_version?(command, expected_version)
version, status = cli.capture2e "#{command} --version"