Class: CmQuiz::CLI

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

Instance Method Summary collapse

Instance Method Details

#testObject



15
16
17
18
19
20
21
22
# File 'lib/cm_quiz/cli.rb', line 15

def test
  endpoint = options[:endpoint]
  puts "Start test #{endpoint}"
  puts "please wait..."
  message = CmQuiz::ReviewQuiz.new(endpoint).perform

  puts message
end

#versionObject



9
10
11
# File 'lib/cm_quiz/cli.rb', line 9

def version
  puts "#{File.basename($0)} #{VERSION}"
end