Class: Gemkeeper::CLI::Commands::Setup
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Gemkeeper::CLI::Commands::Setup
- Defined in:
- lib/gemkeeper/cli/commands/setup.rb
Instance Method Summary collapse
Instance Method Details
#call(source_path:, **options) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/gemkeeper/cli/commands/setup.rb', line 21 def call(source_path:, **) () output_path = resolve_output_path() if lockfile?(source_path) setup_from_lockfile(source_path, output_path, ) else setup_from_config(source_path, output_path, ) end rescue UnresolvableGemError, ManifestConflictError => error warn "Error: #{error.}" exit 1 end |