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

35
init/actions/update.rb Normal file
View File

@@ -0,0 +1,35 @@
class UpdateAction < Action
def default
skyhook
end
def all
skyhook
projects
end
def method_missing(project, *args)
Projects.send(project).checkout(*args)
Action.perms :ensure
end
def projects(*args)
Projects.checkout(*args)
Action.perms :ensure
end
def skyhook
SVN.up(nil, $skyhook_root)
shell "#{$skyhook_root}/init/rc.rb update.post_skyhook"
if $console
exec "irb -r #{$skyhook_root}/init/init.rb"
end
end
def post_skyhook
Action.perms :ensure
Projects.init
end
end