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.27.2 share/rbbt_commands/migrate_job
rbbt-util-5.27.1 share/rbbt_commands/migrate_job
rbbt-util-5.27.0 share/rbbt_commands/migrate_job
rbbt-util-5.26.171 share/rbbt_commands/migrate_job
rbbt-util-5.26.170 share/rbbt_commands/migrate_job
rbbt-util-5.26.169 share/rbbt_commands/migrate_job
rbbt-util-5.26.168 share/rbbt_commands/migrate_job
rbbt-util-5.26.167 share/rbbt_commands/migrate_job
rbbt-util-5.26.166 share/rbbt_commands/migrate_job
rbbt-util-5.26.164 share/rbbt_commands/migrate_job
rbbt-util-5.26.163 share/rbbt_commands/migrate_job
rbbt-util-5.26.162 share/rbbt_commands/migrate_job
rbbt-util-5.26.161 share/rbbt_commands/migrate_job
rbbt-util-5.26.160 share/rbbt_commands/migrate_job
rbbt-util-5.26.159 share/rbbt_commands/migrate_job
rbbt-util-5.26.158 share/rbbt_commands/migrate_job
rbbt-util-5.26.157 share/rbbt_commands/migrate_job
rbbt-util-5.26.156 share/rbbt_commands/migrate_job
rbbt-util-5.26.155 share/rbbt_commands/migrate_job
rbbt-util-5.26.154 share/rbbt_commands/migrate_job