Class: SynchronisedMigration::Commands::Migrate
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- SynchronisedMigration::Commands::Migrate
- Defined in:
- lib/synchronised_migration/commands.rb
Instance Method Summary collapse
Instance Method Details
#call(**options) ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/synchronised_migration/commands.rb', line 16 def call(**) abort "Config location must be provided" if [:config].nil? abort "Version must be provided" if [:version].nil? config = SynchronisedMigration::Configuration.from_cli() result = SynchronisedMigration::Main.new(config).call abort(result.error_msg) if result.failure? $stdout.puts "Complete!" end |