Method: TTY::Command::Cmd#chdir

Defined in:
lib/tty/command/cmd.rb

#chdir(value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



101
102
103
104
105
# File 'lib/tty/command/cmd.rb', line 101

def chdir(value)
  return value unless options[:chdir]

  %(cd #{Shellwords.escape(options[:chdir])} && #{value})
end