Class: Albacore::AlbaSemVer::Config
- Inherits:
-
Object
- Object
- Albacore::AlbaSemVer::Config
- Includes:
- Logging
- Defined in:
- lib/albacore/tasks/albasemver.rb
Instance Attribute Summary collapse
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Methods included from Logging
#debug, #err, #error, #fatal, #info, #puts, #trace, #warn
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
32 33 34 35 36 37 38 |
# File 'lib/albacore/tasks/albasemver.rb', line 32 def initialize begin @semver = SemVer.find rescue SemVerMissingError => e raise Error.new("could not find .semver file - please run 'semver init'", e) end end |
Instance Attribute Details
#tag ⇒ Object
Returns the value of attribute tag.
30 31 32 |
# File 'lib/albacore/tasks/albasemver.rb', line 30 def tag @tag end |