bin/reap-publish in reap-9.3.5 vs bin/reap-publish in reap-9.4.0
- old
+ new
@@ -1,7 +1,30 @@
#!/usr/bin/env ruby
require 'reap/application'
-app = Reap::Application.new
+HELP = <<-END
+Usage: #{File.basename($0)} [options]
-app.publish
+This tool publishes website files from a source directory
+(deafult 'site') to a host provider (only Rubyforge for now).
+The host must support RSync, which is used to upload the
+files to the webserver.
+
+ project Name of (Rubyforge) project
+ webdir Relative directory on server to copy files (.)
+ source Local directory to get files (site/)
+ username Username (RUBYFORGE_USERNAME)
+
+If the source directory does not contain an '.rysnc-filter'
+file, a standard one will be genreated the first time the
+command is run. You can then edit this file to add any
+upload exceptions you like.
+END
+
+if ARGV.include?('--help')
+ puts HELP
+else
+ app = Reap::Application.new
+ app.publish
+end
+