Module: Origen::ConsoleMethods

Included in:
Origen
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



18
19
20
21
# File 'lib/origen/commands/interactive.rb', line 18

def cd(dir)
  Dir.chdir(dir)
  Dir.pwd
end

#lsObject



14
15
16
# File 'lib/origen/commands/interactive.rb', line 14

def ls
  `ls`.split("\n")
end

#pwdObject



23
24
25
# File 'lib/origen/commands/interactive.rb', line 23

def pwd
  Dir.pwd
end