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.26.150 share/rbbt_commands/purge_job
rbbt-util-5.26.149 share/rbbt_commands/purge_job
rbbt-util-5.26.148 share/rbbt_commands/purge_job
rbbt-util-5.26.147 share/rbbt_commands/purge_job
rbbt-util-5.26.146 share/rbbt_commands/purge_job
rbbt-util-5.26.145 share/rbbt_commands/purge_job
rbbt-util-5.26.144 share/rbbt_commands/purge_job
rbbt-util-5.26.143 share/rbbt_commands/purge_job
rbbt-util-5.26.142 share/rbbt_commands/purge_job
rbbt-util-5.26.141 share/rbbt_commands/purge_job
rbbt-util-5.26.140 share/rbbt_commands/purge_job
rbbt-util-5.26.139 share/rbbt_commands/purge_job
rbbt-util-5.26.138 share/rbbt_commands/purge_job
rbbt-util-5.26.137 share/rbbt_commands/purge_job
rbbt-util-5.26.136 share/rbbt_commands/purge_job
rbbt-util-5.26.135 share/rbbt_commands/purge_job
rbbt-util-5.26.134 share/rbbt_commands/purge_job
rbbt-util-5.26.133 share/rbbt_commands/purge_job
rbbt-util-5.26.132 share/rbbt_commands/purge_job
rbbt-util-5.26.131 share/rbbt_commands/purge_job