Class: Roger::Release::Scm::Fixed
- Defined in:
- lib/roger/release/scm/fixed.rb
Overview
The Fixed SCM implementation for Roger release Here you define everything in the config or set it later with the different accessors.
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#previous ⇒ Object
Returns the value of attribute previous.
-
#version ⇒ Object
Returns the value of attribute version.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(config = {}) ⇒ Fixed
constructor
A new instance of Fixed.
Constructor Details
#initialize(config = {}) ⇒ Fixed
Returns a new instance of Fixed.
12 13 14 15 16 17 18 |
# 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 |
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
7 8 9 |
# File 'lib/roger/release/scm/fixed.rb', line 7 def date @date end |
#previous ⇒ Object
Returns the value of attribute previous.
7 8 9 |
# File 'lib/roger/release/scm/fixed.rb', line 7 def previous @previous end |
#version ⇒ Object
Returns the value of attribute version.
7 8 9 |
# File 'lib/roger/release/scm/fixed.rb', line 7 def version @version end |