Sha256: 4c158b0eea95758ecd94d0e48ae2388f0870e9fc6ec0a9e19ee875ebed693132
Contents?: true
Size: 251 Bytes
Versions: 6
Compression:
Stored size: 251 Bytes
Contents
module Pave module Shell def shell(command) output = `#{command}` Struct.new(:status, :output).new($?, output) end def sh(command) result = shell(command) puts result.output result.status end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
pave-0.5.0 | lib/pave/shell.rb |
pave-0.4.0 | lib/pave/shell.rb |
pave-0.3.0 | lib/pave/shell.rb |
pave-0.2.2 | lib/pave/shell.rb |
pave-0.2.1 | lib/pave/shell.rb |
pave-0.2.0 | lib/pave/shell.rb |