Class: Teamocil::Command::NewWindow

Inherits:
Object
  • Object
show all
Defined in:
lib/teamocil/command/new_window.rb

Instance Method Summary collapse

Instance Method Details

#optionsObject



8
9
10
11
12
13
# File 'lib/teamocil/command/new_window.rb', line 8

def options
  [].tap do |options|
    options << "-n '#{name}'" if name
    options << "-c '#{root}'" if root
  end
end

#to_sObject



4
5
6
# File 'lib/teamocil/command/new_window.rb', line 4

def to_s
  "new-window #{options.join(' ')}"
end