Class: GithubToCanvasQuiz::CLI

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

Instance Method Summary collapse

Instance Method Details

#alignObject



28
29
30
31
32
# File 'lib/github_to_canvas_quiz/cli.rb', line 28

def align
  puts '⬆️ Aligning quiz...'
  Synchronizer::Quiz.new(client, options[:directory]).sync
  puts '✅ Done'
end

#backupObject



12
13
14
15
16
17
18
19
20
21
# File 'lib/github_to_canvas_quiz/cli.rb', line 12

def backup
  puts '⬇️ Converting quiz...'
  Builder::Quiz.new(
    client,
    options[:course],
    options[:quiz],
    options[:directory],
  ).build
  puts '✅ Done'
end

#versionObject



35
36
37
# File 'lib/github_to_canvas_quiz/cli.rb', line 35

def version
  puts VERSION
end