Sha256: 03dc1e39dd4ba032f981a25ff34b80f6b633b5d3fbc2b6dfb337f2bce7fff8b9
Contents?: true
Size: 778 Bytes
Versions: 98
Compression:
Stored size: 778 Bytes
Contents
#!/usr/bin/env ruby require 'rbbt-util' require 'rbbt/util/simpleopt' require 'rbbt/util/migrate' $0 = "rbbt #{$previous_commands*""} #{ File.basename(__FILE__) }" if $previous_commands options = SOPT.setup <<EOF RSync a directory, commonly ~/.rbbt/ $ rbbt migrate [options] <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 EOF if options[:help] if defined? rbbt_usage rbbt_usage else puts SOPT.doc end exit 0 end path, search_path, _sep, *other = ARGV search_path = 'user' if search_path.nil? options[:other] = other Rbbt.migrate(path, search_path, options)
Version data entries
98 entries across 98 versions & 1 rubygems