Skip to content

Commit

Permalink
added deploy rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelforrest committed Jan 3, 2009
1 parent a94363f commit d0abc6e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Rakefile
@@ -0,0 +1,21 @@
require 'rexml/document'
include REXML

desc "update version and copy to server"
task :release do
Dir.chdir("resources") do
build = File.read("build.xml")
xml = Document.new(build)
versionNumber = xml.elements["project/property[@name='versionNumber']"]
v = versionNumber.attributes["value"]
nummers = v.split(".")
minorVersion = nummers[2]
minorVersion = minorVersion.to_i + 1
versionNumber.attributes["value"] = nummers[0..1].join(".") + "." + minorVersion.to_s
File.open("build.xml", "w") do |file|
file << xml.to_s
end
puts `ant`
end
`scp -r distribution/web/* root@grimaceworks.com:/srv/processing/microkontrol/`
end

0 comments on commit d0abc6e

Please sign in to comment.