Sha256: c08dfcd46f83415dd1a2f149e2de4bff4e5dc15c421b02a30b8b120bb4264950
Contents?: true
Size: 591 Bytes
Versions: 3
Compression:
Stored size: 591 Bytes
Contents
require "open3" module Bundleup class BundleCommands include Console def outdated run(%w[bundle outdated], true) end def show run(%w[bundle show]) end def update(args=[]) run(%w[bundle update] + args) end private def run(cmd, fail_silently=false) cmd_line = cmd.join(" ") progress("Running `#{cmd_line}`") do out, err, status = Open3.capture3(*cmd) next(out) if status.success? || fail_silently raise ["Failed to execute: #{cmd_line}", out, err].compact.join("\n") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bundleup-0.7.0 | lib/bundleup/bundle_commands.rb |
bundleup-0.6.1 | lib/bundleup/bundle_commands.rb |
bundleup-0.6.0 | lib/bundleup/bundle_commands.rb |