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