Class: Momoka::CLI

Inherits:
Dotenv::CLI
  • Object
show all
Defined in:
lib/momoka/cli.rb

Instance Method Summary collapse

Instance Method Details

#runObject



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/momoka/cli.rb', line 8

def run
  if @overload
    Momoka.overload!(*@filenames)
  else
    Momoka.load!(*@filenames)
  end
rescue Errno::ENOENT => e
  abort e.message
else
  exec(*@argv) unless @argv.empty?
end