Class: TeachersPet::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/teachers_pet/configuration.rb

Constant Summary collapse

@@API_ENDPOINT =

For github.com: 'api.github.com/' For GitHub Enterprise: 'yourServer.com/api/v3'

'https://api.github.com/'
@@WEB_ENDPOINT =

For github.com: github.com/' For GitHub Enterprise: ''yourServer.com/'

'https://github.com/'
@@STUDENTS_FILE =

The name fo the file that contains the team definitions / students

'./students'
@@SSH_ENDPOINT =

github.com - set to 'github.com' GitHub Enterprise - 'yourserver.com'

'github.com'
@@REMOTE_SSH =

It is best to push remotes vis SSH, you can swith this to false to push as HTTPS

true

Class Method Summary collapse

Class Method Details

.apiEndpointObject


10
11
12
# File 'lib/teachers_pet/configuration.rb', line 10

def self.apiEndpoint
  @@API_ENDPOINT
end

.remoteSshObject


41
42
43
# File 'lib/teachers_pet/configuration.rb', line 41

def self.remoteSsh
  @@REMOTE_SSH
end

.sshEndpointObject


34
35
36
# File 'lib/teachers_pet/configuration.rb', line 34

def self.sshEndpoint
  @@SSH_ENDPOINT
end

.studentsFileObject


25
26
27
# File 'lib/teachers_pet/configuration.rb', line 25

def self.studentsFile
  @@STUDENTS_FILE
end

.webEndpointObject


18
19
20
# File 'lib/teachers_pet/configuration.rb', line 18

def self.webEndpoint
  @@WEB_ENDPOINT
end