Sha256: 990651041c56664f54db9daee870c008b6d7e6b9c9cd0aced8cb8399711423ac

Contents?: true

Size: 807 Bytes

Versions: 15

Compression:

Stored size: 807 Bytes

Contents

# frozen_string_literal: true

require 'forwardable'
require 'ttytest/constants'
require 'ttytest/tmux/driver'
require 'ttytest/tmux/session'

# ttytest2 main module
module TTYtest
  class << self
    attr_accessor :driver, :default_max_wait_time

    extend Forwardable
    # @!method new_terminal(command, width: 80, height: 24)
    #   Create a new terminal through the current driver.
    #   @param [String] command a valid shell command to run
    #   @param [Integer] width width of the new terminal
    #   @param [Integer] height height of the new terminal
    #   @return [Terminal] a new terminal running the specified command
    def_delegators :driver, :new_terminal
  end

  class MatchError < StandardError; end

  self.driver = TTYtest::Tmux::Driver.new
  self.default_max_wait_time = 2
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ttytest2-0.9.12 lib/ttytest.rb
ttytest2-0.9.11 lib/ttytest.rb
ttytest2-0.9.10 lib/ttytest.rb
ttytest2-0.9.9 lib/ttytest.rb
ttytest2-0.9.7 lib/ttytest.rb
ttytest2-0.9.6 lib/ttytest.rb
ttytest2-0.9.5 lib/ttytest.rb
ttytest2-0.9.4 lib/ttytest.rb
ttytest2-0.9.3 lib/ttytest.rb
ttytest2-0.9.2 lib/ttytest.rb
ttytest2-0.9.1 lib/ttytest.rb
ttytest2-0.9.0 lib/ttytest.rb
ttytest2-0.8.6 lib/ttytest.rb
ttytest2-0.8.5 lib/ttytest.rb
ttytest2-0.8.4 lib/ttytest.rb