Sha256: d15b98a70d75a3ca639341720a677ee51f1402f2e1f4056a52cdeeeed054062c

Contents?: true

Size: 665 Bytes

Versions: 82

Compression:

Stored size: 665 Bytes

Contents

#!/usr/bin/env ruby

require 'rbbt-util'
require 'rbbt/util/simpleopt'
require 'rbbt/workflow'
require 'rbbt/workflow/remote/ssh/get'

$0 = "rbbt #{$previous_commands*""} #{ File.basename(__FILE__) }" if $previous_commands

options = SOPT.setup <<EOF

Remove a job and its dependencies

$ rbbt purge [options] <job_path> 

-h--help Print this help
-t--test Do a verbose dry run
-r--relocate Include relocated dependencies

EOF
if options[:help]
  if defined? rbbt_usage
    rbbt_usage 
  else
    puts SOPT.doc
  end
  exit 0
end

path, search_path, _sep, *other = ARGV

raise ParameterException, "No path given" if path.nil? 

Step.purge(path, options[:relocate])

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
rbbt-util-5.28.6 share/rbbt_commands/purge_job
rbbt-util-5.28.5 share/rbbt_commands/purge_job
rbbt-util-5.28.4 share/rbbt_commands/purge_job
rbbt-util-5.28.2 share/rbbt_commands/purge_job
rbbt-util-5.28.1 share/rbbt_commands/purge_job
rbbt-util-5.28.0 share/rbbt_commands/purge_job
rbbt-util-5.27.13 share/rbbt_commands/purge_job
rbbt-util-5.27.12 share/rbbt_commands/purge_job
rbbt-util-5.27.11 share/rbbt_commands/purge_job
rbbt-util-5.27.10 share/rbbt_commands/purge_job
rbbt-util-5.27.9 share/rbbt_commands/purge_job
rbbt-util-5.27.8 share/rbbt_commands/purge_job
rbbt-util-5.27.7 share/rbbt_commands/purge_job
rbbt-util-5.27.6 share/rbbt_commands/purge_job
rbbt-util-5.27.5 share/rbbt_commands/purge_job
rbbt-util-5.27.4 share/rbbt_commands/purge_job
rbbt-util-5.27.3 share/rbbt_commands/purge_job
rbbt-util-5.27.2 share/rbbt_commands/purge_job
rbbt-util-5.27.1 share/rbbt_commands/purge_job
rbbt-util-5.27.0 share/rbbt_commands/purge_job