Sha256: 5b1d0a45113b414a4968d5f4be2fee7fe0ccd9651dfbfe66639c284f6d4c92cf

Contents?: true

Size: 802 Bytes

Versions: 2

Compression:

Stored size: 802 Bytes

Contents

module Roger
  class Release
    module Scm
      # Abstract SCM base class
      class Base
        attr_reader :config

        def initialize(config = {})
          @config = config
        end

        # Returns the release version string from the SCM
        #
        # @return String The current version string
        def version
          fail "Implement in subclass"
        end

        # Returns the release version date from the SCM
        def date
          fail "Implement in subclass"
        end

        # Returns a Release::Scm object with the previous version's data
        #
        # @return Roger::Release::Scm The previous version
        def previous
          fail "Implement in subclass"
        end
      end
    end
  end
end

require File.dirname(__FILE__) + "/scm/git"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
roger-1.2.2 lib/roger/release/scm.rb
roger-1.2.1 lib/roger/release/scm.rb