Sha256: 49f723011b1e63dba6ddc8d0fc21c5b4074924bc74ec748ee915435e5a7a6171

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reap-9.2.1 lib/reap/manager/release.rb