Sha256: 9ea801e4c26f95d700b3757f60b0953c856b37d90b26f1d09040a969f14b2e8b
Contents?: true
Size: 364 Bytes
Versions: 1
Compression:
Stored size: 364 Bytes
Contents
# CLI utilities module SimplyUseful module Cli def run(cmd, env = nil, opts = {}) args = [] args << env unless env.nil? args << cmd puts("Running #{opts[:orig_cmd] || cmd}...") system(*args) end def bundler_run(cmd, env = nil) opts = {orig_cmd: cmd} run("bundle exec #{cmd}", env, opts) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simply_useful-0.2.3 | lib/simply_useful/cli.rb |