lib/docman/deployers/git_deployer.rb in docman-0.0.51 vs lib/docman/deployers/git_deployer.rb in docman-0.0.52
- old
+ new
@@ -14,9 +14,13 @@
prev_version = File.file?(filepath) ? File.open(filepath) : nil
params = self['environment']['tagger']
params['prev_version'] = prev_version
version = Docman::Taggers::Tagger.create(params, root, self).perform
File.open(filepath, 'w') {|f| f.write(version) }
+
+ filepath = File.join(root['full_build_path'], 'version.properties')
+ File.open(filepath, 'w') {|f| f.write("version=#{version}") }
+
tag = version
end
GitUtil.commit(root['full_build_path'], root['full_build_path'], 'Updated version', tag)
GitUtil.push(root['full_build_path'], root.version)