#!/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 < You can specify extra rsync options after -- -h--help Print this help -t--test Do a verbose dry run -r--relocate Include relocated dependencies EOF if options[:help] if defined? rbbt_usage rbbt_usage else puts SOPT.doc end exit 0 end path, search_path, _sep, *other = ARGV raise ParameterException, "No path given" if path.nil? Step.purge(path, options[:relocate])