Class: Dash::CommandLine
Instance Method Summary collapse
Instance Method Details
#dir ⇒ Object
16 17 18 |
# File 'lib/dash/command_line.rb', line 16 def dir ['dir'] || [:dir] end |
#image ⇒ Object
13 14 15 |
# File 'lib/dash/command_line.rb', line 13 def image ['image'] || [:image] end |
#run! ⇒ Object
26 27 28 |
# File 'lib/dash/command_line.rb', line 26 def run! session.run! end |
#session ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/dash/command_line.rb', line 19 def session puts .inspect res = Session.new res.current_dir = dir res.image = image if image.present? res end |