Sha256: b5355c739cfa25d0998450f93dfeb3ac722152bcb46e8b675a312fdf9a7cacdc

Contents?: true

Size: 501 Bytes

Versions: 8

Compression:

Stored size: 501 Bytes

Contents

require 'socket'

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hubbard-0.0.18 lib/hubbard.rb
hubbard-0.0.16 lib/hubbard.rb
hubbard-0.0.15 lib/hubbard.rb
hubbard-0.0.14 lib/hubbard.rb
hubbard-0.0.13 lib/hubbard.rb
hubbard-0.0.12 lib/hubbard.rb
hubbard-0.0.11 lib/hubbard.rb
hubbard-0.0.10 lib/hubbard.rb