Sha256: b8dda551c11a173103aaa590ca9b8853c1795865ae1477dafcba0bb819d8c345

Contents?: true

Size: 762 Bytes

Versions: 49

Compression:

Stored size: 762 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.exist?(target) and not File.directory?(target)
Step.archive(files, target)

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
rbbt-util-5.37.8 share/rbbt_commands/workflow/archive_all
rbbt-util-5.37.6 share/rbbt_commands/workflow/archive_all
rbbt-util-5.37.4 share/rbbt_commands/workflow/archive_all
rbbt-util-5.37.3 share/rbbt_commands/workflow/archive_all
rbbt-util-5.37.1 share/rbbt_commands/workflow/archive_all
rbbt-util-5.37.0 share/rbbt_commands/workflow/archive_all
rbbt-util-5.36.0 share/rbbt_commands/workflow/archive_all
rbbt-util-5.35.4 share/rbbt_commands/workflow/archive_all
rbbt-util-5.35.3 share/rbbt_commands/workflow/archive_all
rbbt-util-5.35.2 share/rbbt_commands/workflow/archive_all
rbbt-util-5.35.1 share/rbbt_commands/workflow/archive_all
rbbt-util-5.34.27 share/rbbt_commands/workflow/archive_all
rbbt-util-5.34.26 share/rbbt_commands/workflow/archive_all
rbbt-util-5.34.25 share/rbbt_commands/workflow/archive_all
rbbt-util-5.34.24 share/rbbt_commands/workflow/archive_all
rbbt-util-5.34.23 share/rbbt_commands/workflow/archive_all
rbbt-util-5.34.22 share/rbbt_commands/workflow/archive_all
rbbt-util-5.34.21 share/rbbt_commands/workflow/archive_all
rbbt-util-5.34.20 share/rbbt_commands/workflow/archive_all
rbbt-util-5.34.18 share/rbbt_commands/workflow/archive_all