Sha256: eaa868c56cbcab6a059e6084b83ceafac6e026dcf656c5f28bc6e1522161ce9d

Contents?: true

Size: 790 Bytes

Versions: 86

Compression:

Stored size: 790 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

RSync a directory, commonly ~/.rbbt/ 

$ rbbt migrate [options] <job_path> <search_path> 

You can specify extra rsync options after --

-h--help Print this help
-t--test Do a verbose dry run
-p--print Print command
-d--delete Delete source file when moved
-s--source* Source server
-t--target* Target server
-r--recursive Recursively move all deps
EOF
if options[:help]
  if defined? rbbt_usage
    rbbt_usage 
  else
    puts SOPT.doc
  end
  exit 0
end

path, search_path, _sep, *other = ARGV

Step.migrate(path, search_path, options)

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
rbbt-util-5.26.110 share/rbbt_commands/migrate_job
rbbt-util-5.26.109 share/rbbt_commands/migrate_job
rbbt-util-5.26.108 share/rbbt_commands/migrate_job
rbbt-util-5.26.106 share/rbbt_commands/migrate_job
rbbt-util-5.26.105 share/rbbt_commands/migrate_job
rbbt-util-5.26.104 share/rbbt_commands/migrate_job
rbbt-util-5.26.103 share/rbbt_commands/migrate_job
rbbt-util-5.26.102 share/rbbt_commands/migrate_job
rbbt-util-5.26.101 share/rbbt_commands/migrate_job
rbbt-util-5.26.99 share/rbbt_commands/migrate_job
rbbt-util-5.26.98 share/rbbt_commands/migrate_job
rbbt-util-5.26.97 share/rbbt_commands/migrate_job
rbbt-util-5.26.93 share/rbbt_commands/migrate_job
rbbt-util-5.26.92 share/rbbt_commands/migrate_job
rbbt-util-5.26.91 share/rbbt_commands/migrate_job
rbbt-util-5.26.89 share/rbbt_commands/migrate_job
rbbt-util-5.26.88 share/rbbt_commands/migrate_job
rbbt-util-5.26.87 share/rbbt_commands/migrate_job
rbbt-util-5.26.86 share/rbbt_commands/migrate_job
rbbt-util-5.26.85 share/rbbt_commands/migrate_job