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