Sha256: 6280e45bf256458bbc5f499f0d20a5ff998c10b0ea809da25730d7f5a2df753d

Contents?: true

Size: 833 Bytes

Versions: 1

Compression:

Stored size: 833 Bytes

Contents

module Omnitest
  module Shell
    autoload :ExecutionResult, 'omnitest/shell/execution_result'
    autoload :ExecutionError, 'omnitest/shell/execution_result'
    autoload :MixlibShellOutExecutor, 'omnitest/shell/mixlib_shellout_executor'
    autoload :BuffShellOutExecutor, 'omnitest/shell/buff_shellout_executor'

    AVAILABLE_OPTIONS = [
      # All MixLib::ShellOut options - though we don't use most of these
      :cwd, :domain, :password, :user, :group, :umask,
      :timeout, :returns, :live_stream, :live_stdout,
      :live_stderr, :input, :logger, :log_level, :log_tag, :env
    ]

    attr_writer :shell

    def shell
      @shell ||= RUBY_PLATFORM == 'java' ? BuffShellOutExecutor.new : MixlibShellOutExecutor.new
    end

    attr_writer :shell

    def cli
      @cli ||= Thor::Shell::Base.shell
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omnitest-psychic-0.0.9 lib/omnitest/shell.rb