Sha256: f7b78547e57590c429b8fd7d01ca1595326ab4025ea6f9c4283fe4bcc45a088a

Contents?: true

Size: 700 Bytes

Versions: 5

Compression:

Stored size: 700 Bytes

Contents

module Psychic
  module Shell
    autoload :ExecutionResult, 'psychic/shell/execution_result'
    autoload :ExecutionError, 'psychic/shell/execution_result'
    autoload :MixlibShellOutExecutor, 'psychic/shell/mixlib_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
    ]

    class << self
      attr_writer :shell
    end

    def self.shell
      @shell ||=  MixlibShellOutExecutor.new
    end

    def shell
      Psychic::Shell.shell
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
psychic-runner-0.0.8 lib/psychic/shell.rb
psychic-runner-0.0.7 lib/psychic/shell.rb
psychic-runner-0.0.6 lib/psychic/shell.rb
psychic-runner-0.0.5 lib/psychic/shell.rb
psychic-runner-0.0.4 lib/psychic/shell.rb