Class: SwitchDb::Cli
- Inherits:
-
Object
- Object
- SwitchDb::Cli
- Defined in:
- lib/switch_db/cli.rb
Class Method Summary collapse
Class Method Details
.run!(command, arguments = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/switch_db/cli.rb', line 4 def run!(command, arguments = {}) command_class = command_for(command) reference_set = ReferenceSet.load_from_directory(SwitchDb.configuration.cache_dir) command_class.new(reference_set: reference_set).run(arguments) end |