Sha256: 44b6e4956318e5865bab6630e214687df46baec5522557f00aa220a7e6b41f19

Contents?: true

Size: 536 Bytes

Versions: 1

Compression:

Stored size: 536 Bytes

Contents

require_relative 'backticks/version'
require_relative 'backticks/cli'
require_relative 'backticks/command'
require_relative 'backticks/runner'
require_relative 'backticks/ext'

module Backticks
  # Run a command.
  #
  # @return [Backticks::Command] a running command
  def self.new(*argv)
    Backticks::Runner.new.command(*argv)
  end

  # Run a command and return its stdout.
  #
  # @return [String] the command's output
  def self.command(*argv)
    command = self.new(*argv)
    command.join
    command.captured_output
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
backticks-0.1.1 lib/backticks.rb