Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Remove standard output from with_rubygems
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Apr 12, 2019
1 parent abc29c3 commit a4afc44
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bin/with_rubygems
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require "pathname"

def run(*cmd)
return if system(*cmd)
return if system(*cmd, :out => IO::NULL)
raise "Running `#{cmd.join(" ")}` failed"
end

Expand All @@ -20,8 +20,6 @@ unless rubygems_path.directory?
run("git remote update")
version = "v#{version}" if version =~ /\A\d/
run("git", "checkout", version, "--quiet")
hash = `git rev-parse HEAD`.chomp
puts "Checked out rubygems '#{version}' at #{hash}"
end
end

Expand Down

0 comments on commit a4afc44

Please sign in to comment.