Module: Crosstest::Shell

Included in:
Psychic
Defined in:
lib/crosstest/shell.rb,
lib/crosstest/shell/execution_result.rb,
lib/crosstest/shell/buff_shellout_executor.rb,
lib/crosstest/shell/mixlib_shellout_executor.rb

Defined Under Namespace

Classes: BuffShellOutExecutor, ExecutionError, ExecutionResult, IOToLog, MixlibShellOutExecutor

Constant Summary collapse

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
]

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.shellObject


19
20
21
# File 'lib/crosstest/shell.rb', line 19

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

Instance Method Details

#shellObject


23
24
25
# File 'lib/crosstest/shell.rb', line 23

def shell
  Crosstest::Shell.shell
end