remove GIT part 1

This commit is contained in:
Andreas Stephanides
2013-02-17 12:16:44 +01:00
parent bcc6de5349
commit 3d60580332
5 changed files with 20 additions and 3 deletions

View File

@@ -2,5 +2,9 @@ class ConfigController < ApplicationController
def index
end
def get_git_update
g = Git.open(".")
flash[:notice] =g.remote("github").fetch
redirect_to url_for(:action => 'index', :controller => 'config')
end
end

View File

@@ -4,4 +4,8 @@
<%= link_to '<i class="icon-user"></i>'.html_safe + 'Userverwaltung',:controller =>"users",:action => "index" %>
</li>
</ul>
<%= link_to 'Update',:controller =>"config",:action => "get_git_update" %>