Sha256: 49bfe1ebe69f82dd44b96090ef69947576596089855acc20c02f9237b33b5c5e

Contents?: true

Size: 312 Bytes

Versions: 19

Compression:

Stored size: 312 Bytes

Contents

module Pave
  module Shell
    def Shell.included base
      base.extend Shell
    end

    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

19 entries across 19 versions & 1 rubygems

Version Path
pave-0.11.2 lib/pave/shell.rb
pave-0.11.1 lib/pave/shell.rb
pave-0.12.0.rc3 lib/pave/shell.rb
pave-0.12.0.rc2 lib/pave/shell.rb
pave-0.12.0.rc1 lib/pave/shell.rb
pave-0.11.0 lib/pave/shell.rb
pave-0.10.1 lib/pave/shell.rb
pave-0.10.0 lib/pave/shell.rb
pave-0.9.0 lib/pave/shell.rb
pave-0.8.0 lib/pave/shell.rb
pave-0.7.1 lib/pave/shell.rb
pave-0.7.0 lib/pave/shell.rb
pave-0.6.6 lib/pave/shell.rb
pave-0.6.5 lib/pave/shell.rb
pave-0.6.4 lib/pave/shell.rb
pave-0.6.3 lib/pave/shell.rb
pave-0.6.2 lib/pave/shell.rb
pave-0.6.1 lib/pave/shell.rb
pave-0.6.0 lib/pave/shell.rb