Sha256: 6eb952e555e0136f2544a721792c84b87104c7c8a4157a208d30e877a6b05977

Contents?: true

Size: 763 Bytes

Versions: 248

Compression:

Stored size: 763 Bytes

Contents

#!/usr/bin/env ruby

require 'rbbt/workflow'

require 'rbbt-util'
require 'fileutils'
require 'rbbt/util/simpleopt'
require 'rbbt/workflow/step'
require 'rbbt/util/misc'

require 'rbbt-util'
require 'rbbt/util/simpleopt'

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

options = SOPT.setup <<EOF
Examine the provenance of a job result

$ rbbt workflow archive <target> <job> [<job> ...]

Archive jobs and all dependencies into the target tar gz file or directory. If no target is specified 
it defaults to a <job>.tar.gz

-h--help Help
EOF

SOPT.usage if options[:help]

target, *files = ARGV

raise "Target already exists: #{ target }" if File.exists?(target) and not File.directory?(target)
Step.archive(files, target)

Version data entries

248 entries across 248 versions & 1 rubygems

Version Path
rbbt-util-5.26.31 share/rbbt_commands/workflow/archive_all
rbbt-util-5.26.30 share/rbbt_commands/workflow/archive_all
rbbt-util-5.26.29 share/rbbt_commands/workflow/archive_all
rbbt-util-5.26.28 share/rbbt_commands/workflow/archive_all
rbbt-util-5.26.27 share/rbbt_commands/workflow/archive_all
rbbt-util-5.26.26 share/rbbt_commands/workflow/archive_all
rbbt-util-5.26.25 share/rbbt_commands/workflow/archive_all
rbbt-util-5.26.24 share/rbbt_commands/workflow/archive_all