require 'reap/manager/rubyforge' module Reap class Manager # Release packages (to rubyforge). This generates # the packages, and then distributes them to the # file server. def release(options={}) package(options) rubyforge_release(options) end # A complete rollout. This will prepare (clean, stamp and package), # then document, publish and release, tag and announce. It will # do under direction. You can use the --force option to bypass this # and have evey action taken automatically. def rollout(options={}) if force? doc, pub, ann, tag = true, true, true, true else doc = ask("Generate doumentation?", "Yn").downcase =~ /^(|y|yes)$/i pub = ask("Publish website?", "Yn") =~ /^(|y|yes)$/i tag = ask("Tag current version?", "Yn") =~ /^(|y|yes)$/i ann = ask("Announce release?", "Yn") =~ /^(|y|yes)$/i puts end document(options) if doc publish(options) if pub #package(options) release(options) scm_tag(options) if tag announce(options) if ann end end end