Class: Moodle2CC::CLI

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

Instance Method Summary collapse

Instance Method Details

#migrate(source, destination) ⇒ Object



8
9
10
11
12
# File 'lib/moodle2cc/cli.rb', line 8

def migrate(source, destination)
  migrator = Moodle2CC::Migrator.new source, destination, options
  migrator.migrate
  puts "#{source} converted to #{migrator.imscc_path}"
end