Class: Xcode::Project::Tagger
- Inherits:
-
Object
- Object
- Xcode::Project::Tagger
- Defined in:
- lib/xcode/project/tagger.rb
Instance Attribute Summary collapse
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Instance Method Summary collapse
-
#initialize(project) ⇒ Tagger
constructor
A new instance of Tagger.
- #tag ⇒ Object
- #version ⇒ Object
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
#project ⇒ Object (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
#tag ⇒ Object
16 17 18 |
# File 'lib/xcode/project/tagger.rb', line 16 def tag sh *%W[git tag -a #{version} -m #{"Released #{version}"}] end |
#version ⇒ Object
12 13 14 |
# File 'lib/xcode/project/tagger.rb', line 12 def version @version ||= "v#{project.version}" end |