Sha256: 192178b463816d46381d97384247a864713c805d35e4bff04f4b2870e3a2c56f

Contents?: true

Size: 1.71 KB

Versions: 46

Compression:

Stored size: 1.71 KB

Contents

module Rake
  module XForge
    # Base class for XForge tasks.
    class Base
      # The user name for the xForge login of a release administrator of the
      # project being released. This should NOT be stored in the Rakefile.
      attr_accessor :user_name
      # The password for the xForge login of a release administrator of the
      # project being released. This should NOT be stored in the Rakefile.
      attr_accessor :password
      # The CHANGES file. If this file exists, it is parsed according to the
      # standard CHANGES version parsing routines. See CHANGES FORMAT below
      # for more information. Defaults to CHANGES if unset. #version must
      # also be set.
      #
      # === CHANGES FORMAT
      # The CHANGES file is essentially an RDoc-format changelog in the
      # form:
      #
      #   == Version VERSION-Pattern
      #
      #   RELEASE NOTES
      #
      #   * Change 1
      #   * Change 2
      attr_accessor :changes_file
      # Modifies the release version and affects CHANGES file parsing.
      attr_accessor :version

      def initialize(project)
        @project = project

        @changes_file = "CHANGES"
        @version = ::PKG_VERSION if defined?(::PKG_VERSION)
  
        if block_given?
          yield self
          set_defaults
          execute
        end
      end
      
    protected
      def set_defaults
      end
      
      def user_name
        unless @user_name
          print "#{@project.host} user: "
          @user_name = STDIN.gets.chomp
        end
        @user_name
      end

      def password
        unless @password
          print "#{@project.host} password: "
          @password = STDIN.gets.chomp
        end
        @password
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 3 rubygems

Version Path
redcar-dev-0.12.1dev-java lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-dev-0.12.0dev-java lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-0.11 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-0.11.0dev lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-0.10 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-0.9.2 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-0.9.1 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-0.9.0 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-0.8.1 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-0.8 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-0.7 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-0.6.1 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-0.6 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-0.6.1dev lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-0.5.1 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-0.5 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-0.5.6dev lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-0.5.5dev lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-0.5.4dev lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb
redcar-0.5.3dev lib/openssl/mocha/vendor/meta_project-0.4.15/lib/rake/contrib/xforge/base.rb