Class: Ace::Overseer::CLI::Commands::Stop
- Inherits:
-
Support::Cli::Command
- Object
- Support::Cli::Command
- Ace::Overseer::CLI::Commands::Stop
- Includes:
- Support::Cli::Base
- Defined in:
- lib/ace/overseer/cli/commands/stop.rb
Instance Method Summary collapse
- #call(work:) ⇒ Object
-
#initialize(client: nil) ⇒ Stop
constructor
A new instance of Stop.
Constructor Details
#initialize(client: nil) ⇒ Stop
Returns a new instance of Stop.
10 11 12 13 |
# File 'lib/ace/overseer/cli/commands/stop.rb', line 10 def initialize(client: nil) super() @client = client || Molecules::LabClient.new end |
Instance Method Details
#call(work:) ⇒ Object
14 15 16 17 18 |
# File 'lib/ace/overseer/cli/commands/stop.rb', line 14 def call(work:, **) puts @client.call("work", "stop", work, json: false) rescue => error raise Ace::Support::Cli::Error.new(error.) end |