Class: Datagraph::Command::Abort

Inherits:
Datagraph::Command show all
Defined in:
lib/datagraph/command/abort.rb

Overview

Aborts a pending or running process.

Instance Method Summary (collapse)

Methods inherited from Datagraph::Command

#basename, #parse_repository_specs, #parse_resource_specs, #validate_repository_specs, #validate_resource_specs

Methods included from Datagraph::Client

rpc

Instance Method Details

- execute(process_uuid)

This method returns an undefined value.

Parameters:

  • (String) process_uuid


9
10
11
12
# File 'lib/datagraph/command/abort.rb', line 9

def execute(process_uuid)
  (process = Process.new(process_uuid)).abort!
  puts "The process #{process} was successfully aborted." if $VERBOSE
end