Class: Endo::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/endo/cli.rb

Instance Method Summary collapse

Instance Method Details

#exec(endo_file = nil) ⇒ Object



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

def exec(endo_file = nil)
  if endo_file.nil?
    Dir.glob('endo/*.rb').each do |f|
      exec_proc(f)
    end
  else
    exec_proc(endo_file)
  end
end

#versionObject



20
21
22
# File 'lib/endo/cli.rb', line 20

def version
  puts "endo version #{Endo::VERSION}"
end