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