Class: RubyNEAT::Cli::Main

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

Instance Method Summary collapse

Instance Method Details

#neater(*neaters) ⇒ Object



51
52
53
54
55
56
57
58
59
60
61
# File 'lib/rubyneat/cli/main.rb', line 51

def neater(*neaters)
  NEAT::controller.verbosity = options[:verbose].to_i if options[:verbose]
  eval %{$log.level = Logger::#{options[:log].upcase}} if options[:log]

  neaters.map do |neater|
    "#{neater}_neat.rb"
  end.each do |file|
    NEAT::controller.neater = file
    load file
  end
end

#versionObject



42
43
44
# File 'lib/rubyneat/cli/main.rb', line 42

def version
  puts SemVer.find.format "%M.%m.%p%s"
end