Module: Origen::ConsoleMethods
- Defined in:
- lib/origen/commands/interactive.rb
Overview
Methods available to the command line in a console session, split this to a separate file if it gets large over time
Instance Method Summary collapse
Instance Method Details
#cd(dir) ⇒ Object
19 20 21 22 |
# File 'lib/origen/commands/interactive.rb', line 19 def cd(dir) Dir.chdir(dir) Dir.pwd end |
#ls ⇒ Object
15 16 17 |
# File 'lib/origen/commands/interactive.rb', line 15 def ls `ls`.split("\n") end |
#pwd ⇒ Object
24 25 26 |
# File 'lib/origen/commands/interactive.rb', line 24 def pwd Dir.pwd end |