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 9 |
# File 'lib/switch_db/cli.rb', line 4 def run!(command, arguments = {}) command_class = command_for(command) reference_set = ReferenceSet.load_file(SwitchDb.configuration.reference_set_file_full_path) command_class.new(reference_set: reference_set).run(arguments) reference_set.write_reference_set end |