Class: Ace::Overseer::CLI::Commands::Review

Inherits:
Support::Cli::Command
  • Object
show all
Includes:
Support::Cli::Base
Defined in:
lib/ace/overseer/cli/commands/review.rb

Instance Method Summary collapse

Constructor Details

#initialize(client: nil) ⇒ Review

Returns a new instance of Review.



11
12
13
14
# File 'lib/ace/overseer/cli/commands/review.rb', line 11

def initialize(client: nil)
  super()
  @client = client || Molecules::LabClient.new
end

Instance Method Details

#call(work:, pr:) ⇒ Object



15
16
17
18
19
# File 'lib/ace/overseer/cli/commands/review.rb', line 15

def call(work:, pr:, **)
  puts @client.call("work", "review", work, "--pr", pr, json: false)
rescue => error
  raise Ace::Support::Cli::Error.new(error.message)
end