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.153 share/rbbt_commands/migrate_job
rbbt-util-5.26.152 share/rbbt_commands/migrate_job
rbbt-util-5.26.151 share/rbbt_commands/migrate_job
rbbt-util-5.26.150 share/rbbt_commands/migrate_job
rbbt-util-5.26.149 share/rbbt_commands/migrate_job
rbbt-util-5.26.148 share/rbbt_commands/migrate_job
rbbt-util-5.26.147 share/rbbt_commands/migrate_job
rbbt-util-5.26.146 share/rbbt_commands/migrate_job
rbbt-util-5.26.145 share/rbbt_commands/migrate_job
rbbt-util-5.26.144 share/rbbt_commands/migrate_job
rbbt-util-5.26.143 share/rbbt_commands/migrate_job
rbbt-util-5.26.142 share/rbbt_commands/migrate_job
rbbt-util-5.26.141 share/rbbt_commands/migrate_job
rbbt-util-5.26.140 share/rbbt_commands/migrate_job
rbbt-util-5.26.139 share/rbbt_commands/migrate_job
rbbt-util-5.26.138 share/rbbt_commands/migrate_job
rbbt-util-5.26.137 share/rbbt_commands/migrate_job
rbbt-util-5.26.136 share/rbbt_commands/migrate_job
rbbt-util-5.26.135 share/rbbt_commands/migrate_job
rbbt-util-5.26.134 share/rbbt_commands/migrate_job