initial import

This commit is contained in:
2009-12-10 20:45:56 +02:00
commit 14f518ce91
44 changed files with 1867 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
class SinatraDemoProject < Project
def initialize
@name = "sinatra_demo" # Project name
@path = "#{$projects_path}/#{@name}" # Local checkout path
@revision = nil # Default revision to checkout
@repo = "https://heartbit.springloops.com/source/skyhookdemo/projects/sinatra_demo"
super
end
def start
file = "#{@path}/htdocs/config.ru"
configru = File.read(file)
File.open(file, "w+") do |f|
f.write(configru.gsub("development", "production"))
end
end
end