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
23 24 25 26 27 28 29 |
# File 'lib/albacore/tasks/release.rb', line 23 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
18 19 20 |
# File 'lib/albacore/tasks/release.rb', line 18 def artifacts @artifacts end |
#semver ⇒ Object (readonly)
The semver that was released
14 15 16 |
# File 'lib/albacore/tasks/release.rb', line 14 def semver @semver end |