Class: GCGConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/voxpupuli/release/rake_tasks.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.projectObject



18
19
20
# File 'lib/voxpupuli/release/rake_tasks.rb', line 18

def self.project
  @project || ['name']
end

.tag_patternObject



31
32
33
# File 'lib/voxpupuli/release/rake_tasks.rb', line 31

def self.tag_pattern
  @tag_pattern || 'v%s'
end

.userObject



10
11
12
# File 'lib/voxpupuli/release/rake_tasks.rb', line 10

def self.user
  @user || project.split(%r{[-/]}).first
end

Class Method Details

.future_releaseObject



35
36
37
38
39
40
41
42
43
# File 'lib/voxpupuli/release/rake_tasks.rb', line 35

def self.future_release
  if ['version'].match?(/^\d+\.\d+\.\d+$/)
    format(tag_pattern, ['version'])
  else
    # Not formatted like a release, might be a pre-release and the future
    # changes should better be under an "unreleased" section.
    nil
  end
end

.metadataObject



22
23
24
25
# File 'lib/voxpupuli/release/rake_tasks.rb', line 22

def self.
  require 'puppet_blacksmith'
  @metadata ||= Blacksmith::Modulefile.new.
end