Class: Albacore::AlbaSemVer::Config

Inherits:
Object
  • Object
show all
Includes:
Logging
Defined in:
lib/albacore/tasks/albasemver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logging

#debug, #err, #error, #fatal, #info, #puts, #trace, #warn

Constructor Details

#initializeConfig

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

#tagObject

Returns the value of attribute tag.



30
31
32
# File 'lib/albacore/tasks/albasemver.rb', line 30

def tag
  @tag
end