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.133 share/rbbt_commands/migrate_job
rbbt-util-5.26.132 share/rbbt_commands/migrate_job
rbbt-util-5.26.131 share/rbbt_commands/migrate_job
rbbt-util-5.26.130 share/rbbt_commands/migrate_job
rbbt-util-5.26.129 share/rbbt_commands/migrate_job
rbbt-util-5.26.128 share/rbbt_commands/migrate_job
rbbt-util-5.26.126 share/rbbt_commands/migrate_job
rbbt-util-5.26.125 share/rbbt_commands/migrate_job
rbbt-util-5.26.123 share/rbbt_commands/migrate_job
rbbt-util-5.26.122 share/rbbt_commands/migrate_job
rbbt-util-5.26.121 share/rbbt_commands/migrate_job
rbbt-util-5.26.120 share/rbbt_commands/migrate_job
rbbt-util-5.26.119 share/rbbt_commands/migrate_job
rbbt-util-5.26.118 share/rbbt_commands/migrate_job
rbbt-util-5.26.117 share/rbbt_commands/migrate_job
rbbt-util-5.26.116 share/rbbt_commands/migrate_job
rbbt-util-5.26.115 share/rbbt_commands/migrate_job
rbbt-util-5.26.114 share/rbbt_commands/migrate_job
rbbt-util-5.26.113 share/rbbt_commands/migrate_job
rbbt-util-5.26.112 share/rbbt_commands/migrate_job