Sha256: 9dafcff548f26d9088f4eb27a760720e77535885c9af2cdb5acee87af81e7541

Contents?: true

Size: 560 Bytes

Versions: 7

Compression:

Stored size: 560 Bytes

Contents

# Define an abstract interface for external command runners.
#
# @api private
class R10K::Util::Subprocess::Runner

  require 'r10k/util/subprocess/runner/windows'
  require 'r10k/util/subprocess/runner/posix'

  # @!attribute [rw] cwd
  #   @return [String] The directory to be used as the cwd when executing
  #     the command.
  attr_accessor :cwd

  # @!attribute [r] result
  #   @return [R10K::Util::Subprocess::Result]
  attr_reader :result

  def initialize(argv)
    raise NotImplementedError
  end

  def run
    raise NotImplementedError
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
r10k-2.1.1 lib/r10k/util/subprocess/runner.rb
r10k-2.1.0 lib/r10k/util/subprocess/runner.rb
r10k-2.0.3 lib/r10k/util/subprocess/runner.rb
r10k-2.0.2 lib/r10k/util/subprocess/runner.rb
r10k-2.0.1 lib/r10k/util/subprocess/runner.rb
r10k-2.0.0 lib/r10k/util/subprocess/runner.rb
r10k-1.5.1 lib/r10k/util/subprocess/runner.rb