From fae31e324cb93b331794ef3736821087b5d35ea1 Mon Sep 17 00:00:00 2001 From: Leon Date: Sun, 6 Nov 2022 16:33:41 +0100 Subject: [PATCH] Remove thor as a dependency --- Gemfile.lock | 2 -- README.md | 2 +- bin/remote_database_importer | 14 -------------- remote_database_importer.gemspec | 2 -- 4 files changed, 1 insertion(+), 19 deletions(-) delete mode 100755 bin/remote_database_importer diff --git a/Gemfile.lock b/Gemfile.lock index 5592a0f..412e884 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -3,7 +3,6 @@ PATH specs: remote_database_importer (0.1.2) colorize (~> 0.8) - thor (~> 1.2) tty-config (~> 0.6) tty-spinner (~> 0.9) @@ -53,7 +52,6 @@ GEM standard (1.16.1) rubocop (= 1.35.1) rubocop-performance (= 1.14.3) - thor (1.2.1) tty-config (0.6.0) tty-cursor (0.7.1) tty-spinner (0.9.3) diff --git a/README.md b/README.md index a323e63..56e24b1 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ or ## Limitations - At the moment only Postgres databases are supported -- It has to run inside a Rails app. There is a CLI command `remote_database_importer import` as an alternative to the rake task, but there are still some Rails commands like `rails db:drop db:create - rails db:migrate`, which makes it currently not possible to use the gem outside of Rails +- It has to run inside a Rails app. - Not suitable for very large databases, you could run into SSH timeouts ## Contributing diff --git a/bin/remote_database_importer b/bin/remote_database_importer deleted file mode 100755 index 2d8e533..0000000 --- a/bin/remote_database_importer +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env ruby - -require 'thor' -require_relative '../lib/remote_database_importer/operation' - -class RemoteDatabaseImporterCLI < Thor - desc "Restore remote database and import it locally", "asdf" - def import - importer = RemoteDatabaseImporter::Operation.new - importer.import - end -end - -RemoteDatabaseImporterCLI.start diff --git a/remote_database_importer.gemspec b/remote_database_importer.gemspec index fddf51b..a4ea253 100644 --- a/remote_database_importer.gemspec +++ b/remote_database_importer.gemspec @@ -26,10 +26,8 @@ Gem::Specification.new do |spec| end end spec.bindir = "bin" - spec.executables << "remote_database_importer" spec.require_paths = ["lib"] - spec.add_dependency "thor", "~> 1.2" spec.add_dependency "tty-config", "~> 0.6" spec.add_dependency "tty-spinner", "~> 0.9" spec.add_dependency "colorize", "~> 0.8"