Class: Deployments::PublicVersion
- Inherits:
-
Object
- Object
- Deployments::PublicVersion
- Defined in:
- lib/deployments/public_version.rb
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(project) ⇒ PublicVersion
constructor
A new instance of PublicVersion.
Constructor Details
#initialize(project) ⇒ PublicVersion
Returns a new instance of PublicVersion.
3 4 5 |
# File 'lib/deployments/public_version.rb', line 3 def initialize(project) @project = project end |
Instance Method Details
#generate ⇒ Object
7 8 9 10 11 |
# File 'lib/deployments/public_version.rb', line 7 def generate File.open(VERSION_FILE, 'w') do |file| file.write @project.tag_names.last end end |