Sha256: 9039a598ac8dc73fccca806ab29ad7b4fb18494dacfd8ffb1710428a74657921
Contents?: true
Size: 592 Bytes
Versions: 2
Compression:
Stored size: 592 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bundleup-0.8.1 | lib/bundleup/bundle_commands.rb |
bundleup-0.8.0 | lib/bundleup/bundle_commands.rb |