Class: Ocak::Commands::Resume
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Ocak::Commands::Resume
- Defined in:
- lib/ocak/commands/resume.rb
Instance Method Summary collapse
Instance Method Details
#call(issue:, **options) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/ocak/commands/resume.rb', line 20 def call(issue:, **) config = Config.load issue_number = issue.to_i saved = load_state(config, issue_number) chdir = resolve_worktree(config, saved) print_resume_info(issue_number, saved, config) run_resumed_pipeline(config, issue_number, saved, chdir, ) rescue Config::ConfigNotFound => e warn "Error: #{e.}" exit 1 end |