Sha256: b3ad23aa4e6db91d210996347986c29296f91004c6f45fc91926666fb62b14ed

Contents?: true

Size: 1.12 KB

Versions: 5

Compression:

Stored size: 1.12 KB

Contents

require 'reap/project/rubyforge'

module Reap

  class Project

    # 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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
reap-9.3.1 lib/reap/project/release.rb
reap-9.3.3 lib/reap/project/release.rb
reap-9.3.0 lib/reap/project/release.rb
reap-9.3.4 lib/reap/project/release.rb
reap-9.3.5 lib/reap/project/release.rb