Class: Dash::CommandLine

Inherits:
Object show all
Defined in:
lib/dash/command_line.rb

Instance Method Summary collapse

Instance Method Details

#dirObject



16
17
18
# File 'lib/dash/command_line.rb', line 16

def dir
  options['dir'] || options[:dir]
end

#imageObject



13
14
15
# File 'lib/dash/command_line.rb', line 13

def image
  options['image'] || options[:image]
end

#run!Object



26
27
28
# File 'lib/dash/command_line.rb', line 26

def run!
  session.run!
end

#sessionObject



19
20
21
22
23
24
25
# File 'lib/dash/command_line.rb', line 19

def session
  puts options.inspect
  res = Session.new
  res.current_dir = dir
  res.image = image if image.present?
  res
end