lib/hubbard.rb in hubbard-0.0.9 vs lib/hubbard.rb in hubbard-0.0.10

- old
+ new

@@ -2,9 +2,15 @@ module Hubbard PROJECT_REGEX='[a-zA-Z0-9\-]{1,32}' REPOSITORY_REGEX='[a-zA-Z0-9\-]{1,32}' USERNAME_REGEX='[a-zA-Z0-9\-]{1,32}' + KEY_NAME_REGEX = /[a-zA-Z0-9]+/ + KEY_REGEX = /(ssh-rsa|ssh-dsa) ([a-zA-Z0-9\+\/]+[=]*)/ HUB_DATA = ENV['HUB_DATA'] || File.expand_path("~/.hubbard") HUB_HOST = ENV['HUB_HOST'] || Socket.gethostname + PROJECTS_PATH = File.join(HUB_DATA, "projects") + ACCOUNTS_PATH = File.join(HUB_DATA, "accounts") + + ACTIONS = ['read', 'write', 'admin'] end