class Roger::Release::Scm::Fixed

The Fixed SCM implementation for Roger release Here you define everything in the config or set it later with the different accessors.

Attributes

date[RW]
previous[RW]
version[RW]

Public Class Methods

new(config = {}) click to toggle source

@option config [String] :version Version to use (default “0.0.0”) @option config [Time] :date Date to use (default Time.now) @option config [String] :previous Previous version to use (default “0.0.0”)

Calls superclass method Roger::Release::Scm::Base::new
# File lib/roger/release/scm/fixed.rb, line 12
def initialize(config = {})
  super(config)

  self.version = config[:version] || "0.0.0"
  self.date = config[:date] || Time.now
  self.previous = config[:previous] || "0.0.0"
end