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.44.1 share/rbbt_commands/workflow/archive_all
rbbt-util-5.43.0 share/rbbt_commands/workflow/archive_all
rbbt-util-5.42.0 share/rbbt_commands/workflow/archive_all
rbbt-util-5.41.1 share/rbbt_commands/workflow/archive_all
rbbt-util-5.41.0 share/rbbt_commands/workflow/archive_all
rbbt-util-5.40.5 share/rbbt_commands/workflow/archive_all
rbbt-util-5.40.4 share/rbbt_commands/workflow/archive_all
rbbt-util-5.40.3 share/rbbt_commands/workflow/archive_all
rbbt-util-5.40.0 share/rbbt_commands/workflow/archive_all
rbbt-util-5.39.0 share/rbbt_commands/workflow/archive_all
rbbt-util-5.38.1 share/rbbt_commands/workflow/archive_all
rbbt-util-5.38.0 share/rbbt_commands/workflow/archive_all
rbbt-util-5.37.16 share/rbbt_commands/workflow/archive_all
rbbt-util-5.37.15 share/rbbt_commands/workflow/archive_all
rbbt-util-5.37.14 share/rbbt_commands/workflow/archive_all
rbbt-util-5.37.13 share/rbbt_commands/workflow/archive_all
rbbt-util-5.37.12 share/rbbt_commands/workflow/archive_all
rbbt-util-5.37.11 share/rbbt_commands/workflow/archive_all
rbbt-util-5.37.10 share/rbbt_commands/workflow/archive_all
rbbt-util-5.37.9 share/rbbt_commands/workflow/archive_all