Class: Dydra::Command::Abort

Inherits:
Dydra::Command show all
Defined in:
lib/dydra/command/abort.rb

Overview

Aborts a pending or running job.

Instance Method Summary (collapse)

Methods inherited from Dydra::Command

#abort, #basename, #catch_errors, #debug?, #initialize, #parse_repository_specs, #parse_resource_specs, #require_gem!, #stderr, #stdout, #validate_repository_specs, #validate_resource_specs, #verbose?, #wrap_errors

Methods included from Dydra::Client

authenticate!, credentials_file, delete, get, get_json, post, reset!, resource, rpc, setup?

Constructor Details

This class inherits a constructor from Dydra::Command

Instance Method Details

- execute(job_uuid)

This method returns an undefined value.

Parameters:

  • job_uuid (String)


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

def execute(job_uuid)
  (job = Job.new(job_uuid)).abort!
  puts "The job #{job} was successfully aborted." if verbose?
end