426 427 428 429 430 431 432 433
# File 'lib/enfcli.rb', line 426 def cd(dir = "~") try_with_rescue do dir = EnfCli::expand_path(dir) raise EnfCli::ERROR, "No such directory #{dir}" unless Dir.exist?(dir) Dir.chdir(dir) end end