Module: Lab42::Tmux::Interface

Extended by:
Interface
Included in:
Interface
Defined in:
lib/lab42/tmux/dry_run.rb,
lib/lab42/tmux/interface.rb

Overview

Dry Run Interface

Instance Method Summary collapse

Instance Method Details

#command(*args) ⇒ Object



5
6
7
8
9
10
# File 'lib/lab42/tmux/dry_run.rb', line 5

def command *args
  puts args.join( ' ' )
  if args.first == 'capture-pane'
    capture_pane( *args.drop( 1 ) )
  end
end

#query(*args) ⇒ Object



11
12
13
14
# File 'lib/lab42/tmux/dry_run.rb', line 11

def query *args
  puts args.join( ' ' )
  args.first != 'has-session'
end