Class: Raif::CLI::EvalsSetup

Inherits:
Base
  • Object
show all
Defined in:
lib/raif/cli/evals_setup.rb

Instance Attribute Summary

Attributes inherited from Base

#args, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Raif::CLI::Base

Instance Method Details

#runObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/raif/cli/evals_setup.rb', line 9

def run
  OptionParser.new do |opts|
    opts.banner = "Usage: raif evals:setup [options]"
    opts.on("-h", "--help", "Show this help message") do
      puts opts
      exit
    end
  end.parse!(args)

  # Load Rails application to use generators
  load_rails_application

  # Invoke the Rails generator
  require "rails/generators"
  Rails::Generators.invoke("raif:evals:setup", args)
end