Class: Albacore::Tasks::ReleaseData
- Inherits:
-
Object
- Object
- Albacore::Tasks::ReleaseData
- Defined in:
- lib/albacore/tasks/release.rb
Overview
The published message on a finished release
Instance Attribute Summary collapse
-
#artifacts ⇒ Object
readonly
The enumerable thing of artifacts that were created from the release.
-
#semver ⇒ Object
readonly
The semver that was released.
Instance Method Summary collapse
-
#initialize(semver, artifacts) ⇒ ReleaseData
constructor
Create a new ReleaseData object with a semver (XSemVer::SemVer instance) and a list of artifacts.
Constructor Details
#initialize(semver, artifacts) ⇒ ReleaseData
Create a new ReleaseData object with a semver (XSemVer::SemVer instance) and a list of artifacts
21 22 23 24 25 26 27 |
# File 'lib/albacore/tasks/release.rb', line 21 def initialize semver, artifacts raise ArgumentError, 'missing "semver" argument' unless semver raise ArgumentError, 'missing "artifacts" argument' unless artifacts raise ArgumentError, '"artifacts" should respond to #each' unless artifacts.respond_to? :each @semver = semver @artifacts = artifacts end |
Instance Attribute Details
#artifacts ⇒ Object (readonly)
The enumerable thing of artifacts that were created from the release
16 17 18 |
# File 'lib/albacore/tasks/release.rb', line 16 def artifacts @artifacts end |
#semver ⇒ Object (readonly)
The semver that was released
12 13 14 |
# File 'lib/albacore/tasks/release.rb', line 12 def semver @semver end |