Sha256: be587e788c3b0a32a821f4677fab50b80501ef6b74b0db63dedac185d538e7ab
Contents?: true
Size: 248 Bytes
Versions: 1
Compression:
Stored size: 248 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simply_useful-0.2.2 | lib/simply_useful/cli.rb |