Method: Rundoc::CodeCommand::Bash::Cd#call
- Defined in:
- lib/rundoc/code_command/bash/cd.rb
#call(env) ⇒ Object
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rundoc/code_command/bash/cd.rb', line 25 def call(env) line = @line.sub('cd', '').strip puts "running $ cd #{line}" supress_chdir_warning do Dir.chdir(line) end return nil end |