Class: Xcode::Project::Tagger

Inherits:
Object
  • Object
show all
Defined in:
lib/xcode/project/tagger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ Tagger

Returns a new instance of Tagger.



8
9
10
# File 'lib/xcode/project/tagger.rb', line 8

def initialize(project)
  @project = project
end

Instance Attribute Details

#projectObject (readonly)

Returns the value of attribute project.



7
8
9
# File 'lib/xcode/project/tagger.rb', line 7

def project
  @project
end

Instance Method Details

#tagObject



16
17
18
# File 'lib/xcode/project/tagger.rb', line 16

def tag
  sh *%W[git tag -a #{version} -m #{"Released #{version}"}]
end

#versionObject



12
13
14
# File 'lib/xcode/project/tagger.rb', line 12

def version
  @version ||= "v#{project.version}"
end