Updater tweaks and comment.

This commit is contained in:
ethicalhack3r
2012-07-11 23:07:23 +02:00
parent 3d78cbc4ac
commit ef5be1b07f

View File

@@ -21,15 +21,15 @@ require File.expand_path(File.dirname(__FILE__) + '/updater')
class GitUpdater < Updater class GitUpdater < Updater
def is_installed? def is_installed?
%x[git #{repo_directory_arguments()} status 2>&1] =~ /On branch/ ? true : false %x[git status "#{repo_directory_arguments()}" 2>&1] =~ /On branch/ ? true : false
end end
def local_revision_number def local_revision_number
# TODO # TODO - not sure if git has revision numbers? maybe we don't have to check and just do a pull?
end end
def update def update
%x[git #{repo_directory_arguments()} pull] %x[git "#{repo_directory_arguments()}" pull]
end end
protected protected